GetBarcodeType Method

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

The GetBarcodeType method returns the barcode type for a specific barcode configuration within the current RFBarcode object.

VB

nType = object.GetBarcodeType (nBarcode)

VC++

HRESULT hr = object->GetBarcodeType(short nBarcode, short *nType);

Return Value

nType

The barcode type variable. This method will return a -1 if an error occurs. Use the RFGetLastError to return the generated error code. The possible values 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

Parameters

nBarcode

The zero-based index value barcode configuration whose type is to be returned. The RFBarcode object has a zero based index. For example, to return the type for the third barcode configuration in the current RFBarcode object you would pass a 2.

Remarks

See the Constant Values for the numeric equates returned by the function.

To return the type 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, then use GetBarcodeType.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal