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_use( [ <cfile> [ alias <calias> ] [ new ] http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_USE( [ "<cFile> [ ALIAS <cAlias> ] [ NEW ]
       [ INDEX <cIndex> [, ...] ]
       [ EXCLUSIVE|SHARED ]
       [ READONLY|DIRTYREAD ]
       [ MONITOR ] [ TRANSACTIONAL ]" ] )


Parameters

<cFilename>
File to open. The default file type is DBF. If <cFile> is specified, it 
must appear first in the list. Other parameters may appear in any 
order. If <cFile> is omitted, all other parameters must be omitted too.

<cAlias>
One to ten character alias. Must begin with an alpha character.

NEW
Selects next available workarea.

<cIndex>
One to fifteen index filespecs, separated by commas. The default 
filetype is NTX.

EXCLUSIVE -- or -- SHARED
Overrides current setting of Clipper's EXCLUSIVE flag.

READONLY
Opens database file and any index files in readonly mode. Overrides 
current setting of N_READONLY().

DIRTYREAD
Similar to READONLY, but files will not be locked when performing index 
lookups. Overrides current setting of N_DIRTYREAD().

TRANSACTIONAL
Makes sure that <cFile> and any index files opened are flagged 
transactional.


Returns

Logical true if successful, otherwise false. Common reasons for failure 
are that the file does not exist, or could not be opened in the 
requested mode due to a sharing violation.



Description

N_USE() without the parameter closes any file in the current select 
area.

N_USE(<cFilename>) closes any file in the current select area, opens 
the specified file, if found, and initiates activity monitoring, thus 
enabling the N_CHECK? functions.




See Also: N_EXCL() N_MONITOR() N_READONLY() N_SETMULTI() N_TIMEOUT()

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