Click or drag to resize

DbRLockList Function

X#
Get a list of locked records.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION DbRLockList() AS ARRAY
Request Example View Source

Return Value

Type: Array
An array with the numbers of the currently locked records.
Remarks
DBRLock() can be used to obtain multiple record locks in a single work area.
This function returns the numbers of all locked records in an array. By default, this function operates on the currently selected work area.
It can be made to operate on an unselected work area by specifying it within an aliased expression
Examples
The following example shows all currently locked records:
X#
1aRecs := DBRLockList()
2n := ALen(aRecs)
3? "Locked records: ", n
4?
5FOR i := 1 UPTO n
6    ? "Locked record ", aRecs[i]
7NEXT
See Also