
Commands - 89
ON KEYPAD$
Tasking Statement
SYNTAX: ON KEY PAD $ GO SUB line/label
ON KEYPAD$ GOSUB
ON KEYPAD $ size GOSUB line/lable
ON KEYPAD $ size GOSUB
PURPOSE: To cause a progr am branch when any key is pressed on the keypad. Using this com mand w ithout a
line/label disables keypad tasking.
REMARK S: The program branch will respond to any key being pressed. The interrupt service routine can then
filter the character s.
The first two syntaxes are for the RPC-2300 and RPC-150. Only a 16 position keypad is supported
on these cards.
The last two syntax are for the RPC-2350 and RPC-2350G. size specifies the keypad size of 16 or
24.
RELATED: KEYPA D$, SYS(8)
EXAMPLE: 10 ON KEYPAD$ GOSUB 70
20 '
30 GOTO 20
.
.
70 PRINT KEYPAD$(0)
80 RETURN
ERROR: < Can’t compile> – if line/label does not exist
Commenti su questo manuale