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