KEY enables/disables display of, and redefines soft key values.
KEYn, string 0<=n<=8
Allows the soft key display to be displayed on the bottom line of the display. This line is then not scrolled.
Erases the soft key display from the bottom line of the screen, allowing this line to be used by the user. It does not inhibit the use of soft keys.
This displays the entire string assignments of the eight soft keys on the screen.
The keys are programmed by writing a string, of which the first four characters are displayed on the bottom line of the screen if the soft key display has been enabled.
will set key 1 to print the values of the variables x and y when struck. Using the soft keys is equivalent to using the keyboard - but faster.
KEY 1, "?TIME$"+CHR$(13)
will display the time when pressing soft key 1.
On entering Basic, the soft keys default to:
However, if the auto-run mode on power up has been selected, the soft keys are left as they were last programmed.
When using the KEY n, string command, if KEY 0 is typed the soft keys revert to their power up default values. If n is not in the required range then a 'Magnitude Error' occurs.
If it is required to terminate the string with a carriage return or Enter, then it is necessary to terminate with
"string"+CHR$(13) as control characters are not accepted in command lines.