CLS - source-solutions/HELP GitHub Wiki

CLS


CLS [x]

Clears the screen or part of it. If x is not specified, in SCREEN 0 the text view region is cleared; in other screens, the graphics view region is cleared. The comma is optional and has no effect.

Parameters

x is a numeric valued expression that determines what is cleared:

Notes

  • If x = 0, the whole screen is cleared.
  • If x = 1, the graphics view region is cleared.
  • If x = 2, the text view region is cleared.

Errors

  • x is has a string value: Type mismatch.
  • x is not in [-32768 to 32767]: Overflow .
  • x is not in [0, 1, 2]: Illegal function call.
  • If an error occurs, the screen is not cleared.
⚠️ **GitHub.com Fallback** ⚠️