Futurebasic/Language/Reference/cls

= CLS =

Description
resets the current window's clipping region to encompass the entire window, clears the entire contents of the window to the background pattern and color (usually white), and resets the pen to a position near the upper-left corner (0, 0) of the window. If the window contains controls or edit fields created by FB statements, and the window's "autoClip" attribute is turned on, then  will exclude those areas from the clipping region, and will not erase them.

clears a rectangle as high as the current font, from the current pen position to the right side of the window. This is handy for clearing text from the current line only. The pen position is not affected.

clears the text from the pen position to the right side of the window (as  does), then clears the entire window below the pen position. The pen position is not affected.

"FB Lite" behavior: When you use the "FB Lite" runtime,  switches to the Text Window before executing; therefore it only clears text. If you want to clear the Graphics Window, first switch to the Graphics Window (using a statement like ), then call the Toolbox procedure.