Cicode Programming Reference > Cicode Function Categories > Window Functions Introduction > WinFree

WinFree

Removes the active display window. Be aware that the last window (and any child windows owned by the last window) cannot be removed. You cannot call this function as an exit command (see Page Properties) or from a Cicode Object.

Notes

Syntax

WinFree()

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

WinNew, WinNewAt

Example

WinFree();
! Removes the active display window.

See Also

Window Functions