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>ipxerror()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 IPXERROR()
 Determines the error code of the last IPX/SPX call
------------------------------------------------------------------------------
 Syntax

     IPXERROR() --> nErrorCode

     Netware: 2.2 and 3.11

 Returns

     IPXERROR() returns the error code of the previous IPX/SPX call by a
     CA-Clipper Tools function.  There is a table containing the error codes
     in Appendix D.

 Description

     IPXERROR() allows you to locate the source of an error that occurred
     during the execution of a CA-Clipper Tools function for IPX/SPX
     communication (for example IPXOPEN() or SPXESTBCON()).  If the IPX/SPX
     call has been terminated without an error, IPXERROR() returns 0.

     IPXERROR() returns an error code that is the direct result of an IPX/SPX
     call.  If the IPX/SPX call initiates the interrupt controlled receiving
     of a packet, the error code cannot return any information about the
     success or failure of the receiving process.  You can use the
     PPCRECERR() and PPCSNDERR() functions to determine this information.

 Example

     Open the socket.  If an error occurs, determine the reason for the
     error:

     IF OPENSOCK(20000)=0                           // Error?
        IF IPXERROR()=254
           ? 'Local socket table full!'
        ENDIF
     ENDIF

See Also: PPCRECERR() PPCSNDERR()

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