home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / nettos11.zip / MISC / FNERR.PRG < prev    next >
Text File  |  1993-02-23  |  1KB  |  96 lines

  1. /*
  2.  * File......: FNERR.PRG
  3.  * Author....: Glenn Scott
  4.  * CIS ID....: 71620,1521
  5.  * Date......: $Date$
  6.  * Revision..: $Revision$
  7.  * Log file..: $Logfile$
  8.  * 
  9.  * This is an original work by Glenn Scott and is placed in the
  10.  * public domain.
  11.  *
  12.  * Modification history:
  13.  * ---------------------
  14.  *
  15.  * $Log$
  16.  *
  17.  */
  18.  
  19.  
  20. #include "ftint86.ch"
  21. #include "netto.ch"
  22.  
  23.  
  24. static  gFnErr   :=    ESUCCESS
  25.  
  26.  
  27. /*  $DOC$
  28.  *  $FUNCNAME$
  29.  *     FN_ERROR()
  30.  *  $CATEGORY$
  31.  *     Miscellaneous
  32.  *  $ONELINER$
  33.  *     Return current error status for a Netware Library function
  34.  *  $SYNTAX$
  35.  *
  36.  *     fn_error() -> nError
  37.  *
  38.  *  $ARGUMENTS$
  39.  *
  40.  *     None
  41.  *
  42.  *  $RETURNS$
  43.  *
  44.  *     <nError>, a numeric error code.  Details on the error codes can
  45.  *     be found...
  46.  *
  47.  *  $DESCRIPTION$
  48.  *
  49.  *  $EXAMPLES$
  50.  *
  51.  *  $SEEALSO$
  52.  *     _fnSetErr()
  53.  *  $END$
  54.  */
  55.  
  56.  
  57. function fn_Error()
  58.   return gFnErr
  59.  
  60.  
  61. /*  $DOC$
  62.  *  $FUNCNAME$
  63.  *     _fnSetErr()
  64.  *  $CATEGORY$
  65.  *     Miscellaneous
  66.  *  $ONELINER$
  67.  *     Set the current Netware Library error status
  68.  *  $SYNTAX$
  69.  *
  70.  *     _fnSetErr( nErrCode ) -> nOldError
  71.  *
  72.  *  $ARGUMENTS$
  73.  *
  74.  *    <nErrCode>
  75.  *
  76.  *  $RETURNS$
  77.  *
  78.  *    <nOldError>
  79.  *
  80.  *  $DESCRIPTION$
  81.  *
  82.  *  $EXAMPLES$
  83.  *
  84.  *  $SEEALSO$
  85.  *     FN_ERROR()
  86.  *  $END$
  87.  */
  88.  
  89.  
  90.  
  91. function _fnSetErr( nCode )
  92.   local xOld := gFnErr
  93.  
  94.   gFnErr     := nCode 
  95.   return xOld
  96.