GetEvent Method

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

The GetEvent method will immediately return a value after a single key, function key combination, or scan input event has occurred.

VB

pszEvent = object.GetEvent ()

VC++

HRESULT hr = object->GetEvent(Cstring *pszEvent);

Return Value

pszEvent

The single key, function key, or scan input value variable. If this function returns an empty string, an error may have occurred. Use the RFGetLastError method to return the generated error code.

Remarks

Unlike a standard input which only returns after the Carriage Return is pressed or the maximum input length has been reached, GetEvent immediately returns a single, function key combination, or a scanner event. GetEvent will return only the first character entered on a keypad input but will return the entire value for a scan input. You may also use the LastInputType Method to return the origin of the last input type (for example, scanner, keypad, function key, etc.)

Example

' VB Sample Code
Dim wlio As New RFIO
Dim wlterm As New RFTERMINAL
Dim pszVerifyIn As String
.
.
.
' Do something to instruct the user to enter input.
' This example uses an RFPrint call.
wlio.RFPrint 0, (wlterm.TerminalHeight - 1), _
"Verify y/n ? ", WLREVERSE + WLCLREOLN
pszVerifyIn = wlio.GetEvent

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal