FieldDelimiter Tag

ClosedDescription

Sets the field delimiter for a text file with a Custom field delimitation set.

ClosedSyntax

<FieldDelimiter>Value</FieldDelimiter>

Where Value can be set to the character that is being used as the delimiter.

ClosedParent Tag

<RecordSet>

ClosedRemarks

Sets the field delimiter for a text file when the <Delimitation> tag is set to btDelimCustom. The value of this tag will be ignored if <Delimitation> is set to any other value.

<FieldDelimiter> is an optional tag that is used with the <Print>, <FormatSetup>, and <ExportPrintPreviewToImage> commands when the <RecordSet> tag is included in the script. It is required when the <Delimitation> tag is set to btDelimCustom.

ClosedExample

<?xml version="1.0" encoding="utf-8"?>

<XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123">

<Command Name="Job1">

<Print>

<Format>Label1.btw</Format>

<RecordSet Name="Text File 1" Type="btTextFile">

<FileName>Data1.csv</FileName>

<Delimitation>btDelimCustom</Delimitation>

<FieldDelimiter>;</FieldDelimiter>

<NumberOfFields>10</NumberOfFields>

<UseFieldNamesFromFirstRecord>true</UseFieldNamesFromFirstRecord>

</RecordSet>

</Print>

</Command>

</XMLScript>

ClosedRequirements

BTXML Script version 1.0 (BarTender 8.0 and later versions)

Related Topics