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


Parameters

<nStation>
Number of a station.


Returns

The address is returned as a 12 digit hexadecimal string. A null string 
("") is returned if no station of the specified number is attached.


Description

The network node address is associated with the physical terminal and 
is either burned into the network adapter card, or set by switches. The 
range of numbers is entirely dependent on the network type and 
topology.

Note  If the network has more than one server, the address returned 
by N_NETADDR() will probably be more useful than the one returned by 
N_ADDR().


Examples

// See if application is being run
// on a registered workstation
PROCEDURE IsValidStation()
USE Stations.dbf
SEEK N_ADDR( N_WHERE( N_WHOAMI() ) )
IF EOF()
  ? 'Not a registered workstation'
  RETURN .F.
ENDIF
RETURN .T.



See Also: N_NETADDR()

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