Skip to content
Andrew Owen edited this page May 30, 2023 · 2 revisions

KEY (macro definition)


KEY key_id, string_value

Defines the string macro for function key key_id. Only the first 15 characters of string_value are stored.

Parameters

  • key_id is a numeric expression in the range [1 to 15].
  • string value is a string expression.

Notes

  • If key_id is not in the prescribed range, an error is raised.
  • If string_value is the empty string or the first character of string_value is CHR$(0), the function key macro is switched off and subsequent catching of the associated function key with INKEY$ is enabled.

Errors

  • 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 (macro list)


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 (macro toggle)


KEY {ON|OFF}

Toggles function-key macros ON or OFF.

Welcome to the SE BASIC wiki


  • 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:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally