CoreDb.UseArea Method (Logic, String, String, String, Logic, Logic)
|
|
Open a database file.
命名空间:
XSharp
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.24 GA
Syntax STATIC METHOD UseArea(
lNew AS LOGIC,
rddName AS STRING,
cName AS STRING,
cAlias AS STRING,
lShare AS LOGIC,
lReadOnly AS LOGIC
) AS LOGIC
public static bool UseArea(
bool lNew,
string rddName,
string cName,
string cAlias,
bool lShare,
bool lReadOnly
)
Request Example
查看代码Parameters
- lNew
- 类型:Logic
Open RDD in new Workarea ? - rddName
- 类型:String
Name of the RDD to use. - cName
- 类型:String
Name of the (dbf) file to open - cAlias
- 类型:String
Alias to use for the Workarea - lShare
- 类型:Logic
Should the file be opened shared ? - lReadOnly
- 类型:Logic
Should the file be opened readonly ?
Return Value
类型:
LogicTRUE if successful; otherwise, FALSE.
备注This function is like DBUseArea() but strongly typed.
这个函数,不会调用错误处理程序,因此如果失败,不会产生运行时错误消息或创建错误对象。
因此,检查返回值以确定函数是否成功是很重要的。
LastRddError 属性将包含关于发生的任何错误的必要信息。
提示: |
|---|
| VoDbUseArea() and CoreDb.UseArea() are aliases |
See Also