version 6.0 (Modified)
ERASE WINDOW {(window)}
Parameter | Type | Description | |
window | WinRef | Window reference number, or | |
Frontmost window of current process, if omitted |
Description
The ERASE WINDOW command clears the contents of the window whose reference number is passed in window.
If you omit the window parameter, ERASE WINDOW clears the contents of the frontmost window for the current process.
Usually, you will use ERASE WINDOW in combination with MESSAGE and GOTO XY. In this case, ERASE WINDOW clears the contents of the window and moves the cursor to the upper-left corner of the window, the GOTO XY (0; 0) position.
Do not confuse ERASE WINDOW, which clears the contents of a window, with CLOSE WINDOW, which removes the window from the screen.
See Also