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$
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...