Property: DataField

Specifies the field from which the TDBBarcode1D component represents barcode symbol.

Syntax:

property DataField: string;

Description:

Use DataField to bind the TDBBarcode1D component to a field in the dataset. To fully specify a data field, both the dataset and the field within that dataset must be defined. The DataSource property of the TDBBarcode1D component specifies the dataset which contains the data field. The data field should be specifed as a string, bytes, blob, memo, etc field.

For Delphi/C++ Builder 2007 or early, when a TBarcode1D barcode component is linked to the TDBBarcode1D component, except TBarcode1D_FIM, TBarcode1D_Patch, and TBarcode1D_OneCode components, the data field value will be applied to its Barcode property. If a TBarcode1D_FIM component is linked to the TDBBarcode1D component, The first character of the data field value will be applied to its FIMType property. If a TBarcode1D_Patch component is linked to the TDBBarcode1D component, The first character of the data field value will be applied to its PatchType property. If a TBarcode1D_OneCode component is linked to the TDBBarcode1D component, the data field value will applied to its Tracking and Routing properties, the first 20 characters are the Tracking (it is right padded with zeroes to 20 characters), then come the Routing.

For Delphi/C++ Builder 2009 or later, the value of BindProperty property will indicate which property the data field value will be applied to. When a TBarcode1D barcode component is linked to the TDBBarcode1D component, except TBarcode1D_FIM, TBarcode1D_Patch, and TBarcode1D_OneCode components, if the BindProperty property is set to bpBarcode, the data field value will be applied to its Barcode property. If the BindProperty property is set to bpData, the data field value will be applied to its Data property. For the TBarcode1D_FIM component, if the BindProperty property is set to bpBarcode, the first character of the data field value will be applied to its FIMType property. If the BindProperty property is set to bpData, the data field value will be applied to its Data property (only first byte will be used). For the TBarcode1D_Patch component, if the BindProperty property is set to bpBarcode, the first character of the data field value will be applied to its PatchType property. If the BindProperty property is set to bpData, the data field value will be applied to its Data property (only first byte will be used). For the TBarcode1D_OneCode component, if the BindProperty property is set to bpBarcode, the data field value will applied to its Tracking and Routing properties, the first 20 characters are the Tracking (it is right padded with zeroes to 20 characters), then come the Routing. If the BindProperty property is set to bpData, the data field value will be applied to its Data property (first 20 bytes are the tracking, it is right padded with zeroes to 20 bytes, then come the routing).

You can bind multiple TDBBarcode1D components to one data field in order to represent the data field with multiple barcode symbols.

Contents