CLS
| This article is a stub. You can help improve Basic Programming Wiki Complete by expanding it. |
CLS - clear the screen.
Syntax
CLS
Description
CLS clears the screen of text and graphics. The use of CLS in older BASIC dialects was not universal. Some old computers required you to change graphics modes in order to clear the screen and others required you to PRINT special ASCII characters.
In the days of the screen editor, CLS was almost always used to blank the screen before running a program.
Examples
Example of Use
CLS clears the screen of graphics and text.
PRINT "Before the CLS"
CLS
PRINT "After the CLS"
The code in this example will appear to only print After the CLS. The first PRINT line will be executed and displayed, but since CLS will clear the screen so quickly, it will seem as if it was never printed at all.
Related Pages
Backlinks
These pages link back to this page.
Links
- Cls at the Basic4GL Wiki
page_revision: 6, last_edited: 1208025239|%e %b %Y, %H:%M %Z (%O ago)