Code39Checksum
Overview
When True the toolkit will only report Code 39 barcodes where the last character is a valid checksum for the rest of the barcode. The toolkit expects a Code 39 checksum to be calculated using modulus-43.
For example, the barcode "7654R" encodes the number "7654" with a checksum character of "R". Using default settings the toolkit will report this barcode as "7654R" because it does not expect the last character to be a checksum. If ShowCheckDigit is false and Code39Checksum is true then the toolkit will validate the "R" as the checksum and then return the string "7654". This also applies if an application is using the NumericBarcode property. Unless Code39Checksum is set to True then this barcode would not be reported by the toolkit because it contains a non-numeric character.
Default Value: False
Visual Basic using the OCX
[form.]SoftekBarcode.Code39Checksum = value
Visual Basic using the DLL
Private Declare Function stGetCode39Checksum Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetCode39Checksum Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetCode39Checksum (value)
value = stGetCode39Checksum ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.Code39Checksum = value
value = oBar.Code39Checksum
VB.Net using the DLL
Private Declare Function stGetCode39Checksum Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetCode39Checksum Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetCode39Checksum (value)
value = stGetCode39Checksum ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetCode39Checksum(value)
value = barcode.GetCode39Checksum()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.Code39Checksum = value
value = barcode.Code39Checksum
Visual C++ Using the OCX
BOOL GetCode39Checksum() ;
void SetCode39Checksum(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetCode39Checksum();
BOOL __stdcall stSetCode39Checksum(BOOL bNewValue); |