LastExtendedType Method

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

The LastExtendedType method returns the last extended type of the last input call. The extended type can be a barcode type or a widget ID.

VB

nType = object.LastExtendedType ()

VC++

HRESULT hr = object->LastExtendedType(short *nType);

Return Value

nType

The barcode type or widget ID. This function will return a -1 if an error occurs. Use the RFGetLastError method to return the generated error code.

Remarks

When processing input from a widget, use the LastExtendedType method to obtain the widget ID. The widget ID is returned through a previous RFInput call or a GetEvent call.

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

Example

' VB Sample Code
Dim wlio As New RFIO
Dim DoneWidget As WaveLinkWidget
Dim StartWidget As WaveLinkWidget
Dim nLastInputType As Integer
Dim pszProcessIn As String
pszProcessIn = ""
.
.
.
' create widgets. In this example, create widgets named
' StartWidget and DoneWidget (not shown)
.
.
.
' use RFInput or GetEvent to obtain input
pszProcessIn = wlio.GetEvent
' do error checking (not shown)
.
.
.
nLastInputType = wlio.LastInputType
Select Case nLastInputType
Case WLCOMMANDTYPE
If pszProcessIn = Chr$(24) Then
Exit Sub
End If
Case WLKEYTYPE

Case WLSCANTYPE

Case WLWIDGETTYPE
If wlio.LastExtendedType() = StartWidget.WidgetID Then
GetSignature
End If
If wlio.LastExtendedType() = DoneWidget.WidgetID Then
Exit Sub
End If
End Select

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal