StoreBarcode Method

This member of RFBarcode Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The StoreBarcode method saves the current RFBarcode object as a barcode file on an RF device.

VB

bStatus = object.StoreBarcode (pszFileName, nDefault)

VC++

HRESULT hr = object->StoreBarcode(LPCTSTR pszFileName, short nDefault, BOOL *bStatus);

Return Value

bStatus

The status of the function returned as Boolean True or False values. Use the RFGetLastError method to return the error value.

Parameters

pszFileName

The file name that the current RFBarcode object will be saved as on the RF device. This file name may be up to 8 characters in length.

nDefault

The default action taken with the barcodes NOT defined by the current configuration. The possible values are:

BCDISABLED All barcodes not defined within the RFBarcode object will be disabled and will not be decoded for input.

BCENABLED All barcodes not defined within the RFBarcode object will be enabled and will be decoded for input.

NO_DEFAULT The default state for barcodes not defined within the RFBarcode will remain unchanged.

Remarks

To use the current RFBarcode object with an RFInput Method call, you must first save the object to the RF device as a barcode file using the StoreBarcode method.

Example

' VB Sample Code
Dim wlBCode As New RFBarcode
.
.
.
bStatus = wlBCode.PushBarcode("Defltbar")
wlBCode.ClearBarcodes
wlBCode.AddBarcode CODE_39, False, DECODEON, 0, 0
wlBCode.AddBarcode UPC_A, False, DECODEON, 12, 12
If wlBCode.StoreBarcode ("CycCtBar", BCENABLED) = False Then
GoTo ExitApp
End If
' you can use the CycCtBar barcode configuration in an input
' call such as RFInput

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal