QuitApplication  Global

The QuitApplication function stops the application immediately and terminates the process.

You can call this function anywhere but the destructor function of the application object will never be called.

To quit properly an application it is recommanded to return QUIT from the Dialog.OnDestroy event and if possible only for the main dialog. You can call Dialog.Close to close the main dialog.

Syntax

Integer Global.QuitApplication()

Parameters

The QuitApplication function has no parameters.

Return value

The QuitApplication function returns true.

If an error occurs, the QuitApplication function returns false.

Example

QuitApplication()
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia