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


Parameters

<nStation>
Current station number (1-255).


Returns

Network       Return value
Novell        Returns the current logical station number (connection), 
              1-255. This reflects the order in which stations connect 
              to the network. It may change if a station disconnects 
              and reconnects again.

Banyan        Return the number assigned by the STANUM environment
NetBIOS       variable.


Description

Use N_ADDR() to obtain the physical station number. 
N_STANUM(<nStation>) provides an alternate method for configuring 
NetLib for Banyan VINES and NetBIOS-compatible networks. See Appendix A 
for a detailed discussion of configuration.


Examples

// Create top line status bar with current
// station number and user id
PROCEDURE header
  @ 1, 0 SAY 'Station: ' + STR(N_STANUM(), 3)
  @ 1, 64 SAY 'User ID: ' + N_WHOAMI()
RETURN

// Use station number to create uniquely
// named work file for a report
tempfile = 'TEMP'+ LTRIM(STR(N_STANUM())) + '.DBF'
N_FCOPY('customer.dbf', tempfile)
USE &tempfile



See Also: N_ADDR() N_SERVER() N_STAMAX() N_WHOAREYOU()

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