Command CLEAR SCREEN Foundation

Erases the screen, ends READ, and sets cursor to 0,0.

Syntax
CLEAR [SCREEN] | CLS
Parameters
SCREEN
Specifying the option SCREEN erases the screen, but does not end a running READ command, leaving GetList intact.
Description

The command CLEAR erases the screen. If a READ command is being executed, it is terminated and an empty array is assigned to the current GetList and PromptList arrays. After execution of the CLEAR command, the cursor is positioned at 0, 0 and the functions Row() and Col() are updated.

When the option SCREEN is specified, only the screen is erased. An active READ command is continued and the GetList array remains unchanged.

CLS can be used as an abbreviation for CLEAR SCREEN.

Examples
CLEAR SCREEN
// The example demonstrates the use of CLEAR SCREEN. 

PROCEDURE Main 

   CLEAR SCREEN            // erase screen 
   * CLS                   // alternative command 


   @ 10,10 TO 20,40        // new output on the screen 

RETURN 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.