CoreDb.RLock 方法 | |
Lock the current record.
命名空间:
XSharp
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 STATIC METHOD RLock(
uRecId AS Object
) AS LOGIC
public static bool RLock(
Object uRecId
)
查看代码参数
- uRecId
- 类型:Object
The ID (usually a record number) of the record to be locked. If specified, record locks held by the current process are retained. If not specified, all locks held by the current process are released and the current record is assumed.
返回值
类型:
BooleanTRUE if successful; otherwise, FALSE.
备注 This function is like DBRlock() but strongly typed.
这个函数,不会调用错误处理程序,因此如果失败,不会产生运行时错误消息或创建错误对象。
因此,检查返回值以确定函数是否成功是很重要的。
LastRddError 属性将包含关于发生的任何错误的必要信息。
参见