LastInputType Method

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

The LastInputType method returns a numeric representation of the last input’s specific type.

VB

nType = object.LastInputType ()

VC++

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

Return Value

nType

The returned input type. This function will return a -1 if an error occurs. Use the RFGetLastError method to return the generated error code.

Remarks

The possible return constants for LastInputType are listed below:

WLCOMMANDTYPE Function Key input
WLKEYTYPE Standard Key input
WLSCANTYPE Scanner input
WLMENUBARTYPE Menubar widget input
WLPOPUPTYPE Popup trigger widget input
WLWIDGETTYPE Widget input
WLTIMEDOUT RFInput input prompt expired

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 or GetEvent to obtain input
pszScanIn = wlio.GetEvent
' 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
ProcessScan
End Select

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal