Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- LanMan Library Reference Guide - <b>lm_ferror()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LM_FERROR()
 Get the error code for a failed networking operation
------------------------------------------------------------------------------

 Syntax

      LM_Ferror() -> nError

 Arguments

     None

 Returns

     <nError>, which is the standard DOS error code if an error has
     occured and otherwise zero (but see below for NetBIOS errors).

 Description

     LM_Ferror() returns the DOS error code associated with failed
     networking operations performed by other LanMan Library functions.
     The DOS error codes can be found in the Error Messages Norton Guide
     or corresponding manual that came with Clipper.

     In the case of LM_MacAddr() which uses the NetBIOS interface
     interrupt 5Ch, it is the NetBIOS result code instead of the DOS
     error code which is returned. The complete list of result codes
     can be found in Ralf Brown's Interrupt List among other places,
     but the most common NetBIOS error is probably error 35 (23h),
     which means "Bad LAN card number" and is reported when an invalid
     LANA number is supplied in the <nLanaNumber> argument to LM_MacAddr()
     or no network adapters are found at all.

     NOTE: MS Network Client for DOS and possibly other redirectors too do
     not report error codes correctly. Error 0 (no error) may get returned
     by LM_Ferror() although an error actually occured.

 Examples

     local cCompName
     cCompName := LM_GetCompName()
     if !empty(cCompName)
        ? 'The local computer name is ' + cCompName
     else
        ? 'Could not get the computer name (Error ' +;
        ltrim(str(LM_Ferror())) + ')'
     endif

 Source: LMFERROR.PRG

 Author: Klas Engwall <klas.engwall@engwall.com>

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