Cls Method

Clears graphics and text from a form.

Object.Cls

Remarks

Applies To: Form Object | _SCREEN

Cls clears text and graphics generated at run time with graphics and printing statements. Background bitmaps created using the Picture property and controls placed on the form at design time are not affected by the Cls method.

The Cls method resets the CurrentX and CurrentY properties to 0.

See Also

Reference

Circle Method

CurrentX, CurrentY Properties

Line Method

Picture Property (Visual FoxPro)

Other Resources

Methods (Visual FoxPro)

Language Reference (Visual FoxPro)