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


Returns

Logical true if program running in multi-user mode. False if running in 
single-user mode.


Description

N_READY() has two purposes. The first time it is issued by your 
program, it initializes NetLib's internal tables and connects your 
program to the network. Later, it can be reissued whenever you want to 
check on the program's network status.

N_READY() must be the first NetLib function executed by your program. 
If other NetLib functions are not working correctly, it is possible 
that your program did not issue N_READY().


Examples

// Start-up NetLib at beginning of program
N_READY()

// Display date
@ 1, 0 SAY 'Date: ' + DTOC(DATE())

// If on network, display user id
IF N_READY()
   @ 1, 30 SAY 'User id: ' + N_WHOAMI()
   @ 1, 60 SAY 'Station# ' + STR(N_STANUM(), 2)
ENDIF

// Verify if user is logged into server
IF ! N_READY() .OR. N_WHOAMI() = ''
  ? 'Must be run on a network'
  QUIT
ENDIF



See Also: N_HANDLES() N_STATUS()

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