Previous Topic: Display FunctionsNext Topic: InputBox - Create, Display, and Operate a Message Box Window


ClearScreen or ClrScr - Clear the Screen

Valid on Windows platforms

The ClearScreen or ClrScr function clears the screen.

Function format:

ClearScreen() as Boolean

The display function always returns TRUE.

Example:

This example prints five lines, waits 5 seconds, and then clears the screen.

Dim counter as integer

'Print 5 lines
For counter = 1 to 5
 Print("Line " + str(counter)) 
Next

'Wait 5 seconds
Sleep(5000)

'Clear the print screen
ClearScreen()
Print("Screen Cleared")