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


Parameters

<nMax>
Maximum number of stations permitted to be logged in.

Returns

Network       Return Value
Novell        Returns the highest station number which has been 
              assigned since the server was rebooted. It does not 
              necessarily reflect how many stations are currently 
              logged in.

Banyan        Return the number assigned to STAMAX environment variable 
NetBIOS       or 99 if the variable does not exist.



Description

N_STAMAX(<nMax>) provides an alternative method for configuring NetLib 
for Banyan VINES and NetBIOS-compatible networks. See Appendix A for a 
detailed discussion of configuration.


Examples

// Calculate how many stations are 
// currently logged in
logged_in = 0
FOR k = 1 TO N_STAMAX()
   IF !empty(N_WHOAMI(k))
      logged_in = logged_in + 1
   ENDIF
NEXT
? 'There are', logged_in, 'stations actually logged in to network'



See Also: N_SERVER() N_STANUM()

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