DbRUnLock Function | |
Release all or specified record locks.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION DbRUnLock(
uRecID
) AS LOGIC CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static bool DbRUnLock(
Usual uRecID = default
)
Request Example
View SourceParameters
- uRecID (Optional)
- Type: Usual
A unique value guaranteed by the structure of the data file to reference a specific item in a data source (database). In a database file, uRecID is the record number. In other data formats, uRecID is the unique primary key value.
Return Value
Type:
Logic
TRUE if successful; otherwise, FALSE.
Remarks
DBRUnLock() releases the lock on uRecID and removes it from the lock list.
If uRecID is not specified, all record locks are released.
Examples
The following example unlocks a range of records:
1PROCEDURE dbRUnLockRange(nLo AS SHORTINT, nHi AS SHORTINT)
2 LOCAL nCounter
3
4 FOR nCounter := nLo UPTO nHi
5 DBRUnLock(nCounter)
6 NEXT
7 RETURN
See Also