#
CwQuitApplication

### Syntax:

    bFlag = CwQuitApplication bForceFlag

            bForceFlag      (boolean)  If true (1), the application quits
                            without first checking for unsaved data or
                            prompting the user.

            bFlag           (boolean) Returns true (1) if the application
                            is going to quit or false (0) if quitting was not
                            permitted by the user.

### Description:

CwQuitApplication causes the application to quit. Note that quitting does not necessarily happen immediately and may not do anything until the script has exited.

### Example:

    flag = CwQuitApplication(0)
    if flag then exit

### Remarks:

The behaviour of this function is somewhat implementation-dependant. The application will exit an unknown amount of time after CwQuitApplication has been called. It is a good idea to terminate the script with EXIT if CwQuitApplication returns true, as in the above example.

Functions by NAME | Index | Functions by PURPOSE