Show/Hide Toolbars

XSharp

NoteThis 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

Purpose

Terminate the application, close all open files, and return control to the operating system.

Syntax

CANCEL | QUIT

Description

You can use either command from anywhere in an application.  A RETURN executed from the Start() routine performs the same action.

Notes

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.

Examples

This example uses QUIT in a dialog box:

 

IF DialogYesNo(10, 10, "Quit application", ;
         BG+/B,B/W", 2)
 QUIT
ENDIF

Assembly

XSharp.RT.DLL

See Also

BEGIN SEQUENCE, ErrorLevel(), RETURN