QBasic 1.1: CLS Statement
Explanation
CLS Statement
Clears the screen.
Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Syntax
Description / Parameter(s)
CLS |
Clears either the text or graphics viewport. If a graphics viewport has been set (using VIEW), clears only the graphics viewport. Otherwise, clears the text viewport or entire screen. |
CLS 0 |
Clears the screen of all text and graphics. |
CLS 1 |
Clears the graphics viewport or the entire screen if no graphics viewport has been set. |
CLS 2 |
Clears the text viewport. |