MaxLength
Overview
MaxLength defines the largest length for a barcode string, including checksum characters.
Default value = 999
Visual Basic using the OCX
[form.]SoftekBarcode.MaxLength = value
Visual Basic using the DLL
Private Declare Function stGetMaxLength Lib "SoftekBarcode" () As Short
Private Declare Function stSetMaxLength Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetMaxLength (value)
value = stGetMaxLength ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.MaxLength = value
value = oBar.MaxLength
VB.Net using the DLL
Private Declare Function stGetMaxLength Lib "SoftekBarcode" () As Short
Private Declare Function stSetMaxLength Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetMaxLength (value)
value = stGetMaxLength ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetMaxLength(value)
value = barcode.GetMaxLength()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.MaxLength = value
value = barcode.MaxLength
Visual C++ Using the OCX
short GetMaxLength();
void SetMaxLength(short value) ;
Visual C++ Using the DLL
short __stdcall stGetMaxLength();
short __stdcall stSetMaxLength(short newValue);
|