Barcode Plugin for Xojo

BarcodeGenerator.GenerateEANCheckDigit Method

Generates check digit for EAN and UPC barcodes.

GenerateEANCheckDigit(
   s as String) as String

Parameters

s
The string to generate check digit from.

Returns

String
The string with the check digit appended at back.

Remarks

  • For EAN8 you should pass 7 letters in and get 8 out.
  • For EAN13 you should pass in 12 letters and get 13 out.
  • For UPC_A you should pass in 11 letters and get 12 out.
  • For UPC_E you should pass in 7 letters and get 8 out.

    See Also

    BarcodeGenerator Class