C5_QUIT

 QUIT
 Terminate program processing
------------------------------------------------------------------------------
 Syntax

     QUIT | CANCEL*

 Description

     QUIT and CANCEL both terminate program processing, close all open files,
     and return control to the operating system.  Each of these commands can
     be used from anywhere in a program system.  A RETURN executed at the
     highest level procedure or a BREAK, with no pending SEQUENCE, also QUITs
     the program.

 Notes

     .  Return code: When a Clipper program terminates, the return
        code is set to 1 if the process ends with a fatal error.  If the
        process ends normally, the return code is set to zero or the last
        ERRORLEVEL() set in the program.

 Examples

     .  This example uses QUIT in a dialog box:

        IF DialogYesNo(10, 10, "Quit to DOS", "BG+/B,B/W", 2)
           QUIT
        ENDIF
        RETURN

 Files:     Library is CLIPPER.LIB.

See Also: BEGIN SEQUENCE ERRORLEVEL() RETURN



Advertisements

3 responses to “C5_QUIT

  1. Pingback: C5_RELEASE | Viva Clipper !

  2. Pingback: C5 Flow Control | Viva Clipper !

  3. Pingback: C5 Commands | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.