(TBarcodeFmx2D_QRCode)
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. There are two different overloading methods, Syntax 1 and Syntax 2:
Syntax 1: Returns the parity value of a barcode text. The barcode text is specified in the Barcode parameter. It is of type string.
The Barcode parameter is in fact an UnicodeString. By default, the unicode string will be converted to an UTF-8 bytes sequence (the BOM isn't included), then caculate its parity. If you want to use other encoding scheme (for example the ANSI, UTF-16), please convert it in the OnEncode event handle, or use the GetParity (Syntax 2) overloading method and specify the converted bytes sequence in its Data parameter. If you want to caculate the parity of a block of binary (bytes) data, please use the GetParity (Syntax 2) overloading method.
Syntax 2: Returns the parity value of a barcode text. The barcode text is specified in the Data parameter. It is of type TBytes (it is in fact a byte array).
You can use the method to caculate the parity of a block of binary (bytes) data.
See also the "Structured append" section in the "TBarcodeFmx2D_QRCode" article.