Remote-processing CAMBASIC Uživatelský manuál Strana 122

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 121
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
Zobrazit stránku 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 207 208

Komentáře k této Příručce

Žádné komentáře