Click or drag to resize

VoDbUseArea Function <Boolean, String, String, String, Boolean, Boolean>

Open a database file.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION VoDbUseArea(
	lNew AS LOGIC,
	rddName AS STRING,
	cName AS STRING,
	cAlias AS STRING,
	lShare AS LOGIC,
	lReadOnly AS LOGIC
) AS LOGIC

Parameters

lNew
Type: Boolean
Open RDD in new workarea ?
rddName
Type: String
Name of the RDD to use.
cName
Type: String
Name of the (dbf) file to open
cAlias
Type: String
Alias to use for the workarea
lShare
Type: Boolean
Should the file be opened shared ?
lReadOnly
Type: Boolean
Should the file be opened readonly ?

Return Value

Type: Boolean
TRUE if successful; otherwise, FALSE.
Remarks
This function is like DBUseArea() but strongly typed.

This function, however, does not call the error handler and will therefore not produce a runtime error message or create an error object if it fails.
Therefore it is important to check the return value to determine if the function succeeded.

The LastRddError property in the runtimestate will contain needed information about any error that occurs.
Tip Tip
VoDbUseArea() and CoreDb.UseArea() are aliases
See Also