Skip to main content
Version: 20 R7 BETA

ERASE WINDOW

ERASE WINDOW {( window )}

ParameterTypeDescription
windowIntegerWindow 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

GOTO XY
MESSAGE

Properties

Command number160
Thread safe