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>nberror()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NBERROR()
 Determines the error code of the most recent NetBIOS call
------------------------------------------------------------------------------
 Syntax

     NBERROR() --> nErrorCode

     Netware: 2.2 and 3.11

 Returns

     NBERROR() returns the error code of the most recent NetBIOS call by a
     CA-Clipper Tools function.  There is a table containing the error codes
     in Appendix E.

 Description

     NBERROR() allows you to locate the source of an error that occurred
     during the execution of a CA-Clipper Tools function for NetBIOS
     communication (for example, NBDOPEN() or NBSCALL()).  If the NetBIOS
     call was terminated without an error, NBERROR() returns 0.

     NBERROR() returns an error code that is the direct result of a NetBIOS
     call.  If the NetBIOS 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

     Add a NetBIOS name to the name table.  If an error occurs, determine the
     error source:

     IF NBADDNAME('MIKE')=0                           // Error?
        IF NBERROR()=13
           ? 'Name already in local name table!'
        ENDIF
     ENDIF

See Also: PPCRECERR() PPCSNDERR()

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