Links are not active on this page.
 @ ... CLEAR Command

Clears a portion of the main Visual FoxPro window or a user-defined window.

@ nRow1, nColumn1 [CLEAR
CLEAR TO nRow2, nColumn2]

Parameters

@ nRow1, nColumn1 CLEAR

Clears a rectangular area whose upper-left corner begins at nRow1 and nColumn1 and continues to the lower-right corner of the main Visual FoxPro window or a user-defined window.

CLEAR TO nRow2, nColumn2

Clears a rectangular area whose upper-left corner is at nRow1 and nColumn1 and whose lower-right corner is at nRow2 and nColumn2.

Expand imageRemarks

If you omit CLEAR or CLEAR TO, Visual FoxPro clears nRow1 from nColumn1 to the end of the row.

Expand imageExample

The following example clears the screen, main Visual FoxPro window, or user-defined window from the second row to the bottom of the window.

 CopyCode imageCopy Code
@ 2,0 CLEAR

The following example clears a rectangular region. The area from row 10 and column 0 to row 20 and column 20 is cleared.

 CopyCode imageCopy Code
@ 10,0 CLEAR TO 20,20

Expand imageSee Also