NumberOfFields Tag

ClosedDescription

Sets the number of fields to scan per record in a text recordset.

ClosedSyntax

<NumberOfFields>Value</NumberOfFields>

Where Value is the total number of fields to scan.

ClosedParent Tag

<RecordSet>

ClosedRemarks

The <NumberOfFields> tag sets the number of fields to scan per record in a text file. Setting <NumberOfFields> is useful when the number of fields is known prior to reading the database and when there is no point in reading past the last field that will be used.

<NumberOfFields> is an optional tag that is used with the <Print>, <FormatSetup>, and <ExportPrintPreviewToImage> commands when the <RecordSet> tag is included in the script.

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.dat</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