Cls Command

Purpose

Clears the screen.

Syntax

Cls [color]

Description

Deletes the contents of the actual window. The window is deleted with the background color set with BackColor.

When AutoRedraw is used and the argument color is specified, a VGA color is used when color is in the range 0..15. Other wise the color is interpreted as RGB value.

Example

Local a%

OpenW # 1

AutoRedraw = 1

Print "Press any key"

KeyGet a%

Cls 5

// Cls doesn't reset BackColor or BkColor

Win_1.BkColor = QBColor(5)

Print "Press any key"

KeyGet a%

CloseW 1

See Also

BackColor

{Created by Sjouke Hamstra; Last updated: 25/09/2014 by James Gaite}