Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>erroract()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ERRORACT()

Syntax:     ERRORACT()

Returns:    A numeric value.
            The number corresponds to the code giving additional
            information about how to react after the last error occurred.

            Code              Definition
            ----              ----------
             1                try several times, then ask user
             2                try several times with pauses, then ask user
             3                ask user for data
             4                leave program normally
             5                leave program as soon as possible
             6                ignore
             7                call upon the user to clear the ground and
                              try again

Usage:      DOS has different ways to react to errors.  One of the best
            known (and least desirable) of the methods is the question
            "Abort,Retry, Fail?" ERRORACT(), however, will return the
            information of how the application should react to the last
            DOS error.

Notes:      The function, along with ERRORBASE() and ERRORCODE(),
            are better used within the ERRORSYS of the Clipper
            application being written.  They provide more information
            about why the DOS error occurred and could mean a safer
            recovery of the application being executed.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   action = ERRORACT()

            IF action = 4
               ? "The program had to be terminated."
               QUIT
            ENDIF



See Also: ERRORBASE() ERRORCODE() ERRORORG()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson