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>errorcode()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ERRORCODE()

Syntax:     ERRORCODE()

Returns:    A numeric value.
            The value returned corresponds to the code of the error
            which occurred at the last DOS function executed.

Usage:      With this function it is possible to examine the code of the
            last error which occurred with the DOS function, at any time.
            ERRORCODE() differs from the Clipper function
            DOSERROR() in that the latter can only return such a code
            under certain conditions.  However, the values of
            DOSERROR() and ERRORCODE() are nevertheless identical.

Notes:      The function, along with ERRORACT() and ERRORBASE(),
            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.

            For a list of all DOS error codes, refer to DOSERROR() in
            the Clipper manual.

Library:    CT1.LIB


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

Examples:   error = ERRORCODE()

            IF error = 3
               ? "File path not found."
            ENDIF



See Also: ERRORACT() ERRORBASE() ERRORORG()

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