GetEvent Method

This member of Class WaveLinkIO is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The GetEvent Method requests and returns a single event from the device. Single events are defined as either a key stroke, a function key sequence, or a scanned barcode.

Syntax

public String GetEvent()
throws WaveLinkError

Returns

The single key, function key, or scan input value

Throws

WaveLinkError

Remarks

Unlike a standard input, which only returns after a carriage return or the maximum input length has been reached, GetEvent immediately returns a single character, function-key combination, or a scanner event.

GetEvent only returns the first key stroke or function key sequence but returns the entire value for a scan input.

Use the LastInputType Method to return the origin of the last input type (i.e., scanner, keypad, or function key).

Example

WaveLinkIO IOIface = new WaveLinkIO();

WaveLinkTerminal termIface = new WaveLinkTerminal();

String pszVerifyIn;

.

.

.

try {

// Do something to instruct the user to enter input.

IOIface.RFPrint(0, (termIface.TerminalHeight() – 1), "Verify y/n ? ", WaveLinkIO.WLREVERSE | WaveLinkIO.WLCLREOLN);

pszVerifyIn = IOIface.Getvent();

}

catch (WaveLinkError wlErr) {

}

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal