This member of RFIO Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.
The RFGetLastError method returns the value of the last generated error.
VB
dError = object.RFGetLastError()
VC++
HRESULT hr = object->GetLastError(DWORD *dError);
Return Value
dError |
The numeric DWORD value of the last generated function error. |
Remarks
Whenever a function error occurs, an error value is generated. You may use RFGetLastError to return the value of the error. The generated errors are listed below:
WLNOERROR |
No error returned from function call. |
WLCOMMERROR |
RF network communication error |
WLMEMORYERROR |
Memory allocation error |
WLNOTINITIALIZED |
RF object is improperly initialized. |
WLREQUESTFAIL |
Input request string format failure |
WLINVALIDPARAMS |
Invalid parameter(s) for function call |
WLINVALIDRETURN |
Invalid return designator for function call |
WLFUNCTIONFAILED |
RF device returned a failure code for the function |
WLBCPARSEERROR |
Failure parsing barcode file |
WLBCADDERROR |
Failed to add barcode to object |
WLBCCLEARERROR |
Failed to clear barcode list |
WLBARCODELIMITEXCEEDED |
Too many barcodes for configuration file |
WLTONEADDERROR |
Failed to add tone to object |
WLTONECLEARERROR |
Failed to clear tone list |
WLIOQUEUEERROR |
IO queue is empty |
WLNOINPUTTYPE |
Unable to determine input type |
WLPORTTIMEOUT |
Auxiliary port timeout |
WLDTOUTOFSYNC |
Terminal date/time out of sync by more than five seconds |
See the Constant Values for the numeric equates returned by the function.
Example
' VB Sample Code
wlio As New RFIO
nError As Integer
.
.
.
' in this example, we use an RFInput call
pszWelcomeIn = wlio.RFInput(pszWelcomeInDefault, 1, 1, _
33, "BarCode", WLCAPSLOCK, WLNO_RETURN_BKSP)
' it is critical to check for errors after communication
' occurs between the app and the RF device.
nError = wlio.RFGetLastError
If nError <> WLNOERROR Then
GoTo ExitApp
Else
' process input
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other