
- 127 -
GetChkDigit
Calculates the check digit for the barcode data based on the specified calculation algorithm.
■ Syntax
[VB]
Public Shared Function GetChkDigit(ByVal bardata As String, _
ByVal type As Char) As Integer
[C#]
public static int GetChkDigit(string bardata, char type)
■ Parameters
bardata
[in] Barcode data
type
[in] Check digit type
Code Type Type
Calculation Method
EAN(JAN), UPC 'A' MOD10
ITF 'I' MOD10
STF (BHT-200B only) 'H' MOD10
CODABAR (NW-7) 'N' MOD16
CODE-39 'M' MOD43
MSI (BHT-200B only) 'P' MOD10
■ Return value
Calculated check digit
■ Exceptions
Name of Exception Meaning
ArgumentException
The barcode data is invalid, or
the specified check digit type is invalid.
Comentários a estes Manuais