WAClose() - Close all windows
Close all open windows
──────────────────────────────────────────────────────────────────────────────

Syntax

WAClose() --> nError

Arguments

None

Returns

0 if successful.
-1 if not.

Description

WAClose() closes all open windows. If one or more windows is open a call
to WAClose() will close all of the open windows, restoring the screen
beneath each window and return a 0.

If there are no windows open when you call WAClose(), WAClose() will
return -1.

Examples

■ This example shows a call to close all windows:

nWindow1 := WOpen(nTop1, nLeft1, nBottom1, nRight1)
nWindow2 := WOpen(nTop2, nLeft2, nBottom2, nRight2)
.
.
.
WAClose()


Files: Library is MRWINDOW.LIB.