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_xopenmode()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XOPENMODE()
Set specific mode for opening tables

Syntax
N_XOPENMODE([<nOpenmode>])

Argument
<nOpenmode> is the mode in which tables should be opened with N_XUSE() or 
USE VIA. The default is zero.

     Mode         Description
     0              Shared read/write (Default).
     1              Accelerated (writecached). Permits faster updates, but 
                    file is not recoverable by rollback.
     2              Readonly.
     3              Writeverify (for files on a local drive, only).
     4              Exclusive read/write.

Returns
Current open mode.

Remarks
The mode remains in effect until changed by another N_XOPENMODE(). It has no 
effect on tables already in use.

If a table is opened VIA the RDD, a non-zero value for N_XOPENMODE overrides 
the SHARED, EXCLUSIVE or READONLY keywords that may have been specified in 
USE VIA.

See the Btrieve Programmer's Manual for more information on open modes.

Example
* Open files in Exclusive mode
N_XOPENMODE(4)
N_XUSE('patients.dta', ...)


See Also: N_XUSE()

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