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_xclose()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XCLOSE()
Close table in current area, or all tables

Syntax
N_XCLOSE([<lAll>])

RDD
Use CLOSE/CLOSE ALL or DBCLOSEAREA()/DBCLOSEALL()

Argument
<lAll> is .F. by default, and .F. is assumed if the argument is omitted; 
only the table in the current area will be closed. If you set <lAll> to .T., 
then the function will close all Btrieve tables in all areas open by the 
current station.

Returns
True if successful. False on failure. Use N_XERROR() to get an error code.

Remarks
N_XCLOSE() with no arguments closes the table in the current area. RaSQL 
releases any record locks applied by the current station. However,  it will 
not write pending updates to disk. Thus, you should issue any necessary 
N_XUPDATE() or N_XINSERT() functions before closing the table.

Examples
* Close patients table
N_XSELECT('patients')
N_XCLOSE()

* Close all tables
N_XCLOSE(.T.)


See Also: N_XUSE()

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