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 5.3 . Guide To CA-Clipper - <b>doserror()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DOSERROR()
 Return the last DOS error number
------------------------------------------------------------------------------
 Syntax

     DOSERROR([<nNewOsCode>]) --> nOsCode

 Arguments

     <nNewOsCode>, if specified, alters the value returned by DOSERROR().
     The value must be a numeric value that reflects a DOS error number.

 Returns

     DOSERROR() returns the DOS error number as an integer numeric value.

 Description

     DOSERROR() is an error function that returns the last DOS error code
     associated with an activation of the runtime error block.  When a
     runtime error occurs, the DOSERROR() function is set to the current DOS
     error if the operation has an associated DOS error.  The function value
     is retained until another runtime error occurs.  If the failed operation
     has no associated DOS error, the DOSERROR() returns zero.  With low-
     level file functions, FERROR() returns the same value as DOSERROR().

     Through use of the optional <nNewOsCode>, you may customize to the
     reporting activation the returned value for any DOS error.

     For a complete list of DOS error numbers and accompanying descriptions,
     refer to the Error Messages and Appendices Guide.

 Files   Library is CLIPPER.LIB.


See Also: ERRORBLOCK() FERROR()

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