SetDecode Method

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

The SetDecode method defines the decode state for an existing barcode configuration within an RFBarcode object.

VB

bStatus = object.SetDecode (nDecode, nBarcode)

VC++

HRESULT hr = object->SetDecode(short nDecode, short nBarcode, 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

nDecode

The decode state for the barcode configuration, as represented by the following constants (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.

nBarcode

The zero based index value barcode configuration whose decode state is to be altered. For example, to alter the decode state for the third barcode configuration in the current RFBarcode object you would pass a 2.

Remarks

To alter the decode state for a barcode configuration stored within a barcode file on an RF device, first use the GetBarcodeFile Method to set the barcode file as the current barcode object within the application, then use SetDecode.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal