Property: EncodeMode

(TBarcode1D_Code128, TBarcode1D_EAN128)

Determines whether to automatically switch the character subset, and automatically encode the extended ASCII characters, base the barcode text in a TBarcode1D_Code128 or TBarcode1D_EAN128 component, in order to minimize the symbol size.

Syntax:

type

{ Defined in the pCode128 unit }

TCode128EncodeMode = (cemAuto, cemManual);

property EncodeMode: TCode128EncodeMode;

Description:

The Code 128 and EAN-128 barcode symbologies can encode all 128 characters of ASCII character sets. This is done by switching between all 3 character subsets of Code 128:

Characters with ASCII values 128 to 255 in accordance with ISO 8859-1:1998 may also be encoded. This is done by using the "FNC 4" symbol together with character subsets A, B and C.

The property determines whether to automatically switch the character subset, and automatically encode the extended ASCII characters, base the barcode text of a TBarcode1D_Code128 or TBarcode1D_EAN128 component, in order to minimize the symbol size. It can be one of these values (defined in the pCod128 unit):

Note, you can manually switch the character subset by using the "CODE A", "CODE B", "CODE C", and "SHIFT" function symbols even if the EncodeMode property is set to cemAuto. Also, you can manual insert the "FNC4" symbol to encode the extended ASCII characters even if the EncodeMode property is set to cemAuto.

Contents