Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xnoreset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XNORESET()
Suppress Btrieve reset operation at start of program

Syntax
N_XNORESET([.T.|.F.])

Returns
Current setting as .T. or .F..

Remarks
RaSQL normally issues a Btrieve reset operation (28) at the start of a 
program.  This can cause problems if a user is shelling to the RaSQL 
application from another Btrieve application (i.e., it may unintentionally 
close the parent's Btrieve files).

To suppress this, issue N_XNORESET(.T.) before issuing N_XLOGIN.

If you chose to do this,  remember to avoid issuing N_XLOGOUT() at the end 
of the program since this also issues the Btrieve reset operation. 

In addition, if you are using the library you must make sure to explicitly 
N_XCLOSE() all the Btrieve files that your application has opened before 
exiting.  If necessary, use a Clipper "Exit Procedure" to make sure that 
this is done in the event of a fatal Clipper error.  Exiting the program 
without either issuing N_XLOGOUT() or closing the files can cause problems 
when attempting to open the files again in the same Btrieve session, 
although it will not cause data loss.  This does not apply to the RDD since 
Clipper automatically closes all files at the end of the program.

Example
N_XNORESET(.T.)                         // before N_XLOGIN
N_XLOGIN()


See Also: N_XCLOSE() N_XLOGIN() N_XLOGOUT()

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