LastBarcodeType Method

This member of Class WaveLinkIO is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The LastBarcodeType Method returns the barcode type of the last input call.

Syntax

public int LastBarcodeType()

Returns

The barcode type of the last input call. If the last input returned is not a barcode, the method returns a -1.

Remarks

The possible barcode types include:

B_UPC

CODABAR

CODE_11

CODE_39

CODE_93

CODE_128

CODE_D25

CODE_I25

D25_IATA

EAN_8

EAN_13

MSI

PDF_417

TO_39

UCC_128

UPC_A

UPC_E0

UPC_E1

WLNOSYMBOLOGY

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

Example

WaveLinkIO ioIface = new WaveLinkIO();

WaveLinkBarcode barcodeIface = new WaveLinkBarcode();

WaveLinkFactory factoryIface = new WaveLinkFactory();

String resultStr;

// Create a barcode configuration and store it as "BCDemo"(not shown).

.

.

.

try {

//Use RFInput to obtain input

resultStr = ioIface.RFInput("", 20, 0, 3, "BCDemo", WaveLinkIO.WLNORMALKEYS, WaveLinkIO.WLDISABLE_KEY);

switch(ioIface.LastInputType())

{

case ioIface.WLCOMMANDTYPE:

//Process command type

break;

case ioIface.WLKEYTYPE:

//Process keyed command

break;

case ioIface.WLSCANTYPE:

switch(ioIface.LastBarcodeType())

{

case WaveLinkBarcode.CODE_39:

// Process Code_39

break;

case WaveLinkBarcode.UPC-A:

// Process UPC_A

break;

}

break;

}

}

catch (WaveLinkError wlErr) {

//Do error handling

}

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal