advr.hlp (Topic list)
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