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 Tools . Book 4-Appendices - <b>nnetpserr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSERR()
 Determines the error code of the most recent print server call
------------------------------------------------------------------------------
 Syntax

     NNETPSERR() --> nErrorCode

     Netware: 2.2 and 3.11

 Returns

     NNETPSERR() returns the error code of the most recent print server
     function call by a CA-Clipper Tools function (NNETPSXXX() functions).
     There is an error code table in Appendix F.

 Description

     NOVELL NET PRINT SERVER ERROR
     CA-Clipper Tools functions for print server control (NNETPSXXX()) do not
     use Netware API calls, but communicate directly with the print server.
     Therefore, the error code of the print server functions cannot be
     queried with the NETERROR() function.  NNETPSERR() allows you to
     determine the error code of the most recent print server call.  If a
     print server call has been executed successfully, the function returns
     0.

 Example

     Delete QUEUE1 from printer 0 on PSERVER.  If the call is unsuccessful,
     determine the reason:

     IF .NOT. NNETPSDELQ('PSERVER',0,'QUEUE1')
        IF NNETPSERR()=782
           ? 'Insufficient rights...'
        ENDIF
     ENDIF

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