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


Parameter

<lSetting>
True enables, false disables implicit encryption.


Returns

Current setting (.T. or .F.)


Description

Normally, newly created files (that is, those created with COPY TO, 
INDEX ON, etc.) will be created as non-encrypted files. If you wish to 
have them encrypted, you can encrypt them with N_ENCODE() after they 
have been created, or you can call N_ENCODENEW(.T.) before creating 
them. This will direct NetLib to encrypt all newly created files. An 
encryption key must first have been set using N_SETKEY().

Turn this feature off by calling N_ENCODENEW(.F.) as soon as it is no 
longer needed, or you may unintentionally encrypt new files.


Example

// Create a temporary .DBF file of
// customers from Washington encrypted
// with the current N_SETKEY()
N_ENCODENEW(.T.)
X = N_FUNIQUE('APPL\DATA','.DBF')
COPY TO (X) FOR CUST_STATE = 'WA'
USE (X)
N_ENCODENEW(.F.)



See Also: N_SETKEY()

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