$FUNCNAME$
  DOSERROR()
$CATEGORY$
  FILE/IO,SYSTEM,DATABASE
$SUMMARY$
   Return the last DOS error number
$LANG_RU$
       DOS.
$SYNTAX$
     DOSERROR([<nNewOsCode>]) --> nOsCode
$LANG_RU$
     DOSERROR([<  >]) -->  
$ARGUMENTS$
     <nNewOsCode>, if specified, alters the value returned by DOSERROR().
     The value must be a numeric value that reflects a DOS error number.
$LANG_RU$
     <  > -  ,  , 
     DOSERROR().     , 
        DOS.
$RETURNS$
     DOSERROR() returns the DOS error number as an integer numeric value.
$LANG_RU$
     DOSERROR()    DOS    
     .
$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.
$LANG_RU$
     DOSERROR() -    ,   
       DOS,      
     .

           ,  
      DOS,  DOSERROR()    .  
         .   
        DOS, DOSERROR()   0. 
           
       FERROR()  DOSERROR() .
$SEEALSO$
  ERRORBLOCK(),FERROR()
$END$
