The CLS Statement
This, like many of the concepts mentioned here at the
beginning, will be very simple.
- The CLS statement fills the screen with the current
background color. By default, the background is black,
but you are welcome to change this using the color
statement (which we will discuss later).
- The CLS statement also sets the cursor position to the
top left corner of the screen (1, 1). You can move cursor
using the LOCATE statement (which we will also discuss
later).
- DON'T put a CLS statement directly following a print
statement. This is because your text will be printed and
cleared so fast that the monitor probably didn't have a
chance to even display the text
- Don't use the CLS statement to much, because this can be
annoying to the user
Assignments
Return to Table of Contents
Last Updated September 11, 2002 by Jared P. Sutton