KeyState Method

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

The KeyState method returns the state of the RF device's keypad.

VB

nKeyState = object.KeyState ()

VC++

HRESULT hr = object->KeyState(short *nKeyState);

Return Value

nKeyState

The device key state variable. This method will return a -1 if an error occurs. Use the RFGetLastError method to return the generated error code.

The possible values are:

CAPSLOCK The device's keypad is in caps lock mode.

NORMALKEYS The device's keypad is in normal non-caps mode.

Remarks

For network efficiency purposes, the settings within the RFTerminal object are initially only set when the object is first created. Therefore, to return the most current information you must first use the ReadTerminalInfo Method which will update the RFTerminal object with the latest device settings before making a call to any other methods.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal