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


Parameters

<lSetting>
Logical true enables.
Logical false disables.


Returns

Current setting, as a logical.


Description

Normally, if you RUN an external command (e.g., a report writer), your
encrypted files will not be readable to the child process. Setting 
N_SETRUN(.T.) enables encrypted files to be used by the child process 
without decrypting them.

Before shelling out to the child process, close the file to be accessed 
and set the appropriate encryption key with N_SETKEY().

After returning from the child process, always set N_SETRUN() to 
.F. so that you do not inadvertently make an encrypted file visible to 
a process you did not intend to make it visible to.

Note  This function is not compatible with Blinker's SWAPRUNCMD().
Encrypted files will be unreadable by the child process.

Example

N_SETRUN(.T.)
N_SETKEY('MyKey') // Files encrypted with 'MyPass'
RUN RRUN MyReport // will be visible to the child.
N_SETRUN(.F.)


See Also: N_SETKEY()

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