Previous Next

Closes the application.


ApplicationExit( mode )


mode  :=  { AFTER_SAVE | IMMEDIATE | '' }


If the optional mode is AFTER_SAVE, any unsaved data is committed automatically. If it is IMMEDIATE, the application is closed without committing any changed data. If an empty string is passed and there are unsaved data, the user is prompted with a dialog to save the data when changes to the data have been made.

If you do not pass mode, the action is ignored.