Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> nwgeterrorget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NWGetErrorGet()
------------------------------------------------------------------------------
 Purpose:
 Get the error code returned by NetWare.

 Syntax:
 iError = NWGetErrorGet()

 Parameters:
 None.

 Returns:
 A numeric value (signed short int).

 The CA-Clipper name for this function is:
 NWGetErrorGet()

 Description:
 NWGetErrorGet() returns the NetWare error number that occurred when
 calling any Novlib `set' function. Novlib `set' functions internally do
 a `get' followed by a `set' - this function allows you to determine the
 error that occurred when performing the `get'. This function should only
 be called after calling a NOVLIB `set' function that returns the previous
 setting. The error numbers and their meanings are described in the
 Appendix.

 Example:
 // To display the NetWare error code:
 oldname = UsrFullNameSet( "ALAN", "Alan Baldwin" )
 iGetError = NWGetErrorGet()
 iSetError = NWSetErrorSet()
 if ((iGetError=0) .and. (iSetError=0))
    ? "User ALAN's full name was", oldname
    ? "User ALAN's full name is now Alan Baldwin"
 else
    if (iGetError<>0)
       ? "Error reading ALAN's full name, code: ",iGetError
    endif
    if (iSetError<>0)
       ? "Error setting ALAN's full name, code: ", iSetError
    endif
 endif

See Also: NWSetErrorGet() NWErrorGet() Error Codes

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