AT&T 6300 Programmer's Manual page 316

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

KEY(n)
Statement
Syntax
n
7-160
Enables or disables event trapping of the
specified key.
KEY( n ) [ONIOFFISTOP]
is an integer expression in the range 1 to 20, indicating the
key to be trapped:
1-10
function keys F1 to FlO
11
Cursor up
12
Cursor left
13
Cursor right
14
Cursor down
15-20
keys defined by the form:
KEY n, CHR$(shift)
+
CHR$(scancode)
To Enable or Disable KEY(n) Trapping
• If a KEY'n' ON is executed, KEY'n' trapping is
enabled
• If a KEY'n' OFF is executed, KEY'n' trapping
is disabled
• If a KEY'n' STOP is executed, KEY'n' trapping
is suspended. If KEY(n) is pressed, the event is
remembered and an immediate trap occurs,
when a KEY'n' ON is executed.

Advertisement

Table of Contents
loading

Table of Contents