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_status() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_STATUS()


Returns

The function returns one of the following codes.

Code          Meaning
0             Not running on a network, or wrong type of network for 
              NetLib driver.

2             Running on a network, but cannot find file PCNETLIB.LOK. 
              These NetLib functions may not work properly:

                  N_CHECK?
                  N_SLOCK()
                  N_STANUM()
                  N_STAMAX()
                  N_WHOAMI()
                  N_WHERE()

3             Running on a network.


Description

If you are using NetLib with a NetBIOS compatible network, you may want 
to call N_STATUS() after calling N_READY().


Example

N_READY()
DO CASE
CASE N_STATUS() = 0
? 'This application is not compatible with your network'
CASE N_STATUS() = 2
? 'Cannot find PCNETLIB.LOK'
ENDCASE

// Verify that user correctly logged in
N_READY()
DO CASE
   CASE N_STATUS() = 0
     ? 'Application must be run on a NetBIOS network'
   CASE N_STATUS() = 1
     ? 'PCNETLIB.LOK not found. Some functions may'
     ? 'not operate correctly'
ENDIF



See Also: N_READY()

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