advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CLS Method Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 [form.][picturebox.]CLS
 
 Usage Notes
   ■ If no object is specified, CLS behavior is determined by its location
     in code:
     • If CLS is in a form module, it is a method, and applies to the default
       form.
     • If CLS is in a non-form module, it is a statement, and applies to the
       entire screen. See: CLS Statement
 
   ■ The CLS method clears text generated at run time with the PRINT method.
     See: PRINT Method
 
   ■ Background images and controls placed on the form are not affected by
     the CLS method.
 
   ■ Text placed on a form or picture box while AutoRedraw is True (-1) is
     not affected by CLS if AutoRedraw is set to False (0) before CLS is
     executed. By carefully manipulating the AutoRedraw property of a form
     or picture box, some degree of permanence can be achieved.
     See: AutoRedraw Property
 
   ■ After the CLS method is executed, the CurrentX and CurrentY properties
     of the form or picture box are reset to 0.
     See: CurrentX Property  CurrentY Property