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_debug( <lsetting>, <nstation> [, <nmaxstation> [, <cwhoami> ] ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_DEBUG( <lSetting>, <nStation> [, <nMaxStation> [, <cWhoAmI> ] ] )

Parameters

<lSetting>
Logical true enables. Logical false disables.

<nStation>
Number of the station that should be returned by N_STANUM().

<nMaxStation>
Highest station number that should be returned by N_STAMAX(). If
the argument is omitted, 99 will be returned.

<cWhoAmI>
User-id that should be returned by N_WHOAMI(). If the argument is
omitted, a null string will be returned.


Returns

Current setting, as a logical.


Description

This function directs NetLib to act as if it were on a network even
when it is not. This will enable limited testing of multi-user portions
of an application when you do not have access to a network.

Call N_DEBUG() immediately after N_READY().


Example

* Pretend we are station 10 on a 15-node network.
* User-id is 'Test'
* Physical station address is 10010
IF !N_READY()
   N_DEBUG(.T., 10, 15, 'Test', 10010)
ENDIF
SET EXCLUSIVE OFF


See Also: N_ADDR() N_STAMAX() N_STANUM() N_WHOAMI()

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