-
Notifications
You must be signed in to change notification settings - Fork 0
KEY
Andrew Owen edited this page May 30, 2023
·
2 revisions
KEY key_id, string_value
Defines the string macro for function key key_id
. Only the first 15 characters
of string_value
are stored.
-
key_id
is a numeric expression in the range[1 to 15]
. -
string value
is a string expression.
- If
key_id
is not in the prescribed range, an error is raised. - If
string_value
is the empty string or the first character ofstring_value
isCHR$(0)
, the function key macro is switched off and subsequent catching of the associated function key withINKEY$
is enabled.
-
key_id
is not in[-32768 to 32767]
: Overflow. -
key_id
is not in[1 to 255]
: Illegal function call. -
key_id
has a string value: Type mismatch.
KEY LIST
Prints a list of the 15 function keys with the function-key macros defined for those keys to the console.
Most characters are represented by their symbol equivalent in the current codepage. However, some characters get a different representation, which is a symbolic representation of the effect as control characters on the screen.
KEY {ON|OFF}
Toggles function-key macros ON
or OFF
.
- Press
RETURN
to return to this menu. - Enter the name of a
TOPIC
to display it. - Enter
EXIT
to return to BASIC.
Choose from the following topics: