Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>errororg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ERRORORG()
 Origin of the most-recent DOS error
------------------------------------------------------------------------------
 Syntax

     ERRORORG() --> nError

     Warning!  This function requires DOS 3.1 or higher.

 Returns

     ERRORORG() returns a numeric code that provides more information about
     the device on which the error occurred.  The table below details this
     information:

     Table 12-4: Origin of DOS Errors
     ------------------------------------------------------------------------
     Code    Definition
     ------------------------------------------------------------------------
     1       Unknown
     2       Block device (floppy, hard disk, etc.)
     3       Network
     4       Character device (COM, SCRN, etc.)
     5       RAM
     ------------------------------------------------------------------------

 Description

     ERRORORG() tells what type of device generated the most-recent DOS
     error.  This essential information allows you to handle the error in an
     appropriate way.

 Example

     Determine the source of an error:

     nSource  :=  ERRORORG()
     IF nSource = 3
        ? "Error is on the network!"
     ENDIF


See Also: ERRORACT() ERRORCODE() ERRORBASE()

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