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

CLEAR


CLEAR [mem_limit]

Clears all variables, arrays, DEF FN user functions. Closes all files. Turns off all sound. Clears all ON ERROR traps. Clears the loop stack.

Parameters

mem_limit specifies the upper limit of usable memory. Default is previous memory size. Default memory size is 65535.

Notes

If called inside a FOR to NEXT or WHILE to WEND loop, an error will be raised at the NEXT or WEND statement, since the loop stacks have been cleared.

Errors

  • Any of the arguments has a string value: Type mismatch.
  • mem_limit is not in [0 to 65535]: Overflow.
  • mem_limit is too low: Address out of range.

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