|Note||This command is defined in a header file and will be preprocessed by the X# preprocessor to a function call. If you disable the standard header (-nostddefs) files then this command will not be available. If you tell the compiler to use a different standard header file (-stddef ) then this command may also be not available|
Terminate the application, close all open files, and return control to the operating system.
CANCEL | QUIT
You can use either command from anywhere in an application. A RETURN executed from the Start() routine performs the same action.
Usage: Both commands can be used from anywhere in an application. A RETURN executed at the highest level procedure or a BREAK, with no pending SEQUENCE, can also be used to QUIT an application.
This example uses QUIT in a dialog box:
IF DialogYesNo(10, 10, "Quit application", ;
BEGIN SEQUENCE, ErrorLevel(), RETURN