This member of RFIO Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.
The LastBarcodeType method returns the numeric representation of the last barcode type scanned by the RF device.
VB
nType = object.LastBarcodeType ()
VC++
HRESULT hr = object->LastBarcodeType(short *nType);
Return Value
nType |
The variable that contains the barcode type. This function returns a -1 if the last input is not scanned input. |
Remarks
The possible barcode types are listed below:
UPC_E0
UPC_E1
UPC_A
MSI
EAN_8
EAN_13
CODABAR
CODE_39
CODE_D25
CODE_I25
CODE_11
CODE_93
CODE_128
WLNOSYMBOLOGY
See the Constant Values for the numeric equates returned by the function.
Example
' VB Sample Code
Dim wlio As New RFIO
Dim nLastInputType As Integer
Dim pszScanIn As String
pszScanIn = ""
.
.
.
' use RFInput to obtain input
pszScanIn = wlio.RFInput ("", 20, 0, 3, "BCDemo", _
NORMALKEYS, WLDISABLE_KEY)
' do error checking (not shown)
.
.
.
nLastInputType = wlio.LastInputType
Select Case nLastInputType
Case WLCOMMANDTYPE
If pszScanIn = Chr$(24) Then
Exit Sub
End If
Case WLKEYTYPE
Case WLSCANTYPE
If wlio.LastBarcodeType() = CODE_39 Then
' do something to process the scan
End If
If wlio.LastBarcodeType() = UPC_A Then
' do something to process the scan
End If
End Select
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other