Specifications

Chapter 15. Function Reference
360
Syntax:
INKEY$
Description:
INKEY$ reads from the keyboard to see whether a key has been pressed, and
returns one character read. If no key has been pressed,
INKEY$ returns a null
string. (For the character codes, refer to Appendix C. For the key number assign-
ment, refer to Appendix E.)
INKEY$ does not echo back a read character on the LCD screen.
A common use for
INKEY$ is to monitor a keystroke while the BHT is ready for
bar code reading or other events.
If any key previously specified for keystroke trapping is pressed,
INKEY$ cannot
return the typed data since the
INKEY$ has lower priority than keystroke trap-
ping.
To display the cursor, you use the
LOCATE and CURSOR statements as shown
below.
LOCATE,,1:CURSOR ON
k$=INKEY$
IF k$="" THEN...
Reference:
INput KEYboard I/O function
INKEY$
Returns a character read from the keyboard.
Statements:
CURSOR, KEY OFF, KEY ON, and LOCATE
Functions:
ASC and INPUT$