window.close
| Syntax |
window.close (title)
|
| Params |
title is the name of a window that is open.
|
| Action |
Closes the window if it is open. If the window is not open, this verb has no effect.
|
| Returns |
True if the window is open and can be closed, false if the window is not open.
|
| Examples |
With the examples table open, type and execute: window.close ("examples") » true
Now execute the same line again. This time, the verb returns false because the window is already closed. |
| Errors |
Attempting to close a window that is already closed results in a return value of false but no error message is generated.
|
| Notes |
This verb cannot be used to close the Main Window, since that would cause the database to be closed and the script to be terminated. If this is desired, use fileMenu.close instead of window.close. Windows remember their last location, size, and selection when they are re-opened.
|
| See Also |
window.open
|