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

Syntax:     ERRORBASE()

Returns:    A numeric value.
            The number corresponds to a code, which supplies further
            information about why the error occurred.

            Code              Definition
            ----              ----------
             1                insufficient storage space
             2                access temporarily refused
             3                no access to this user
             4                internal error in the system software
             5                hardware error
             6                error in the system software
             7                error in the applications program
             8                file not found
             9                file with wrong format or type
             10               data is protected
             11               incorrect medium in the drive
             12               another error

Usage:      ERRORBASE() can be used to determine the cause of a
            fault within the framework of the data supplied by DOS,
            when an error is established with ERRORCODE().

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

            IF cause = 3
               ? "No access allowed!"
            ENDIF



See Also: ERRORACT() ERRORCODE() ERRORORG()

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