This member of RFBarcode Object supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.
The AddBarcode method adds an additional barcode configuration to the RFBarcode object.
VB
bStatus = object.AddBarcode (nType, bExpand, nDecode, nMin, nMax)
VC++
HRESULT hr = object->AddBarcode(short nType, BOOL bExpand, short nDecode, short nMin, short nMax, BOOL *bStatus);
Return Value
bStatus |
The status of the function returned as Boolean True or False values. Use the RFGetLastError method to return any error value. |
Parameters
nType |
The barcode configuration type. The possible values for nType are: CODE_39 UPC_A UPC_E0 EAN_13 EAN_8 CODE_D25 CODE_I25 CODABAR CODE_128 CODE_93 CODE_11 MSI UPC_E1 WLNOSYMBOLOGY |
bExpand |
The Expand state for the barcode configuration (True or False). This parameter is only valid with the UPC_E0 barcode type which may or may not be further expanded following decode. For all other barcode types pass this parameter as False. |
nDecode |
The decode state for the barcode configuration (DECODEON or DECODEOFF). The possible values for nDecode are: DECODEON The barcode configuration will be decoded when scanned and is valid for input. DECODEOFF The barcode configuration will not be decoded when scanned and will not be accepted for input. |
nMin |
The minimum acceptable length in characters for the barcode configuration. |
nMax |
The maximum acceptable length in characters for the barcode configuration. |
Remarks
The individual barcode configurations are stored within an RFBarcode object using a zero based index, that is the fourth barcode configuration has the index value of 3. Once defined, a specific barcode configuration will remain within an RFBarcode object until either the object is released, the barcode configuration is removed from the array using the RemoveBarcode Method, or all barcode configurations are cleared from the object using the ClearBarcodes Method. This allows you to use a single barcode object within your application that may be modified rather than creating a new barcode object for each individual instance.
To add an additional barcode configuration to a saved barcode file, first make the barcode file the current RFBarcode object using the GetBarcodeFile Method, then use AddBarcode.
Input length restrictions for barcode configurations can be eliminated by setting both the nMax and nMin parameters to zero(0).
Example
See the StoreBarcode Method.
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other