(TBarcode2D_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 (only for Delphi/C++Builder 2009 or later):
Syntax 1: Returns the parity value of a barcode text. The barcode text is specified in the Barcode parameter. It is of type string.
For Delphi/C++ Builder 2007 or early, the Barcode parameter is in fact an AnsiString. By default, it is an ANSI encoding string, if you want to use other encoding scheme (for example the UTF-8, UTF-16), please convert it in the OnEncode event, or specify the converted string in the Barcode parameter. Also you can use the method to caculate the parity of a block of binary (bytes) data.
For Delphi/C++ Builder 2009 or later, it is in fact an UnicodeString instead of AnsiString. By default, the unicode string will be converted to an ANSI encoding string, then caculate its parity. If you want to use other encoding scheme (for example the UTF-8, UTF-16), please convert it in the OnEncode event, or use the GetParity (Syntax 2) overloading method and specify the converted string 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 AnsiString. The method is available only for the Delphi/C++ Builder 2009 or later.
For the Delphi/C++ Builder 2009 or later, you can use the method to caculate the parity of a block of binary (bytes) data. Or specifies the barcode text in AnsiString format.
If you want to caculate the parity of a block of binary (bytes) data under Delphi/C++ Builder 2007 or early, please use the GetParity (Syntax 1) overloading method.
See also the "Structured append" section in the "TBarcode2D_QRCode" article.