Specifications
249
Syntax:
KEY (keynumber){ON|OFF}
Parameter:
keynumber
(BHT-3000/BHT-4000) A numeric expression which returns a
value from 1 to 29.
(BHT-5000 with 32-key pad) A numeric expression which returns a
value from 1 to 46.
(BHT-5000 with 26-key pad) A numeric expression which returns a
value from 1 to 34.
(BHT-6000) A numeric expression which returns a
value from 1 to 31, 33, and 34.
(BHT-6500) A numeric expression which returns a
value from 1 to 31 and 33 to 38.
(BHT-7000 with 32-key pad/BHT-7500) A numeric expression which returns a
value from 1 to 31 and 33 to 50.
(BHT-7000 with 26-key pad) A numeric expression which returns a
value from 1 to 31 and 33 to 38.
Description:
■ KEY ON
KEY
ON enables keystroke trapping for a function key specified by keynumber.
(Refer to Appendix E, "Key Number Assignment on the Keyboard.")
• Between every execution of statements, the Interpreter checks whether a function
key specified by the
KEY ON statement is pressed or not. If the key is pressed,
the Interpreter transfers control to the event-handling routine defined by an
ON
KEY...GOSUB
statement before the KEY ON statement.
• If a function key which has been assigned a null string by the
KEY statement is
specified by the
KEY ON statement, the keystroke trap takes place.
• If you specify a function key which has been defined as the LCD backlight func-
tion on/off key, trigger switch, shift key, or battery voltage display key by using the
KEY ON statement, then no keystroke trap takes place.
• Keystroke trapping has priority over the
INKEY$ function.
I/O statement
KEY ON and KEY OFF
Enables or disables keystroke trapping for a specified function key.