Description
Returns the name of the computer containing the lock on a record.
Syntax
owner = RTI_Lock_Owner( table, recordKey )
Parameters
The function has the following parameters:
Parameter | Description |
---|---|
table | An opened OpenInsight file handle. |
recordKey | The key to the record to check. |
Returns
Null if not locked and the computer name if locked.
Example
Open "CUSTOMERS" to f_customers then Lock f_customers, 5 else owner = RTI_Lock_Owner( f_customers, 5 ) call msg( @window, owner : " currently holds a lock on the record." ) end end