closewindow

The closewindow statement closes the current window.


Parameters

No parameters.


Description

This statement closes the currently active window. This statement has the same effect as choosing the Close Window command from the File menu or clicking on the close box for any window.

Note: If closing the window has been disabled (see the setwindowoptions statement), the closewindow statement will not work. If that is a possibility, the code must enable closing before closing the window, like this:

setwindowoptions "closeable","YES"
closewindow

This code will work whether the window is closeable or not. However, if you wanted to check whether the window is closeable, you can use the windowinfo( function.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.