Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_error() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_ERROR()


Returns

Error code from the most recent NetLib operation. Zero indicates that 
the last operation completed successfully.

The file NETERROR.DBF contains the number and description of the most 
frequent NetWare error codes.


Description

If needed, N_ERROR() must be tested before issuing another NetLib 
operation, since the next operation may reset the error code.


Example

// Select preferred server
N_SERVER('FS1')
IF N_ERROR() > 0
  nOldArea := SELECT('NETDEMO')
  SEEK N_ERROR()
  ? 'Error #', N_ERROR()
  ? 'Descript: ' + DESCRIPTION
  SELECT(nOldArea)
ENDIF


Files

NETERROR.DBF


See Also: Errors

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