DBUSEAREA()
Opens a work area and uses a database file.
- Syntax
- DBUSEAREA( [<lNewArea>], [<cDriver>], <cName>, [<xcAlias>],
- [<lShared>], [<lReadonly>]) --> NIL
- Arguments
- <lNewArea> A optional logical expression for the new work area
- <cDriver> Database driver name
- <cName> File Name
- <xcAlias> Alias name
- <lShared> Shared/exclusive status flag
- <lReadonly> Read-write status flag.
- Returns
- DBUSEAREA() always returns NIL.
- Description
- This function opens an existing database named in the current work area. If is set to a logical true (.T.) value, then the database will be opened in the next available and unused work area. The default value of is a logical false (.F.). If used, is the name of the database driver associated with the file that is opened. The default for this will be the value of DBSETDRlVER().
- IF used, contains the alias name for that work area, If not specified, the root name of the database specified in will be used.
- If is set to a logical true (.T.) value, the database that is specified in will be opened by the user EXCLUSIVELY. Thus locking it from all other nodes or users on the network. If is set to a logical false (.F.) value, then the database will be in SHARED mode. If is not passed, then the function will turn to the internal setting of SET EXCLUSIVE to determine a setting.
- If is specified, the file will be set to READ ONLY mode. If it is not specified, the file will he opened in normal read-write mode.
- Examples
- DBUSEAREA(.T.,,"Tests")
- Status
Ready
- Compliance
- This function is CA-Clipper compliant
- Files
- Library is rdd
- See Also