[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson