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


Parameters

<lSetting>
Logical true causes database files to be opened with activity 
monitoring On. This is the default at startup whenever the module 
CHECK.OBJ is linked.

Logical false causes files to be opened with activity monitoring Off.


Returns

Current setting, as a logical.


Description

Activity monitoring must be On at the current station if other stations 
are to be permitted to monitor its activity with N_CHECKR(),  
N_CHECKU() and N_CHECKF(). The default setting is On.

The form N_MONITOR(.F.) permits you to turn activity monitoring Off for 
the next .DBF opened at the current station. If you turn activity 
monitoring Off, we recommend that you do so rarely, and that you turn 
it On again immediately by calling N_MONITOR(.T.) after you have opened 
the files that you do not want to be monitored.


Example

N_MONITOR(.T.)
USE test
IF ! RLOCK()
   ? 'Record is locked by ', N_WHOAMI(N_CHECKR())
ENDIF



See Also: N_CHECKF() N_CHECKR() N_CHECKU()

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