Previous Next

Closes all open windows.


WindowCloseAll([<mode>,] [CLEAR_CACHE])




If set to AFTER_SAVE, any unsaved data is saved automatically. If set to IMMEDIATE, the windows are closed without saving any changed data.

If the parameter is not provided, the user is prompted with a dialog to save the data if changes to the data have been made. If any other value is supplied, the method is ignored.

If this parameter is specified, the windows are deleted from the window cache. This is useful if, for example, the user is changed to a user with different rights. If this parameter is omitted, the windows are not removed from the cache.