322
____________________________________________________________________
INput KEYboard I/O function
INKEY$
Returns a character read from the keyboard.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
INKEY$
Description:
Description:Description:
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 assignment, 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 trapping.
• To display the cursor, you use the LOCATE and CURSOR statements as shown below.
LOCATE ,,1:CURSOR ON
k$=INKEY$
IF k$=""THEN ...
Reference:
Reference:Reference:
Reference:
Statements: CURSOR, KEY OFF, KEY ON, and LOCATE
Functions: ASC and INPUT$
Comentarios a estos manuales