Method: GetParity - Syntax 1

(TBarcodeFmx2D_QRCode)

Returns the parity value of a barcode text that will be encoded into a series of structured append symbols.

Syntax:

function GetParity(Barcode: string; AllowEscape: Boolean; var InvalidIndex: Integer): Byte; virtual;

Description:

The method returns the parity value of a barcode text that will be encoded into a series of structured append symbols. The value will be used in the structured append block, and the structured append block will be used by each symbol in the series of QRCode structured append symbols. See also the "Structured append" section in the "TBarcodeFmx2D_QRCode" article.

Parameters:
Return:

If the method succeeds, it returns the parity value, it's an 8-bit byte value, and the InvalidIndex parameter returns Verify_OK (-1). If the method fails, the InvalidIndex parameter returns a position index of first invalid character in the Barcode parameter. See also the InvalidIndex parameter section above.

See also the "Structured append" section in the "TBarcodeFmx2D_QRCode" article.

Contents