CT_ERRORORG

 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()



Tools – System Information

Introduction System Information
BIOSDATE()   Determines the system BIOS date
BOOTCOLD()   Triggers a cold boot
BOOTWARM()   Triggers a warm start of the system
CPUTYPE()    Determines what type of microprocessor in use
DOSPARAM()   Retrieves the DOS command line as a string
ENVPARAM()   Reads the entire DOS environment table into a string
ERRORACT()   Recommends action for a DOS error that has occurred previously
ERRORBASE()  Source of the most-recent DOS error
ERRORCODE()  Identifies a DOS error that has occurred previously
ERRORORG()   Origin of the most-recent DOS error
EXENAME()    Returns name and directory of the current Clipper program
FILESFREE()  Specifies the number of files you can open
FILESMAX()   Specifies maximum number of files that can be open at one time
GETCOUNTRY() Queries country setting for the operating system
ISANSI()     Tests to see if the ANSI screen driver is installed
ISAT()       Determines if a program is running on an AT
ISMATH()     Determines if a math coprocessor is installed
MEMSIZE()    Determines size of conventional or extended memory
NUMBUFFERS() Determines the BUFFERS= setting
NUMFILES()   Determines maximum number of files you can open simultaneously
OSVER()      Returns the DOS version number
PCTYPE()     Returns the type of computer in use
SSETBREAK()  Sets and checks the DOS BREAK switch
SSETVERIFY() Sets and checks the DOS VERIFY switch