Advantage Client Engine
Tests if the given record is locked by the current user
UNSIGNED32 |
AdsIsRecordLocked (ADSHANDLE hTable, UNSIGNED32 ulRec, UNSIGNED16 *pbLocked); |
hTable (I) |
Handle of table or cursor. |
ulRec (I) |
Record number to test. If 0, then test current record. |
pbLocked (O) |
Return True (1) if locked, False (0) if not locked. |
AdsIsRecordLocked will return True for records that were explicitly or implicitly locked by the current user. If the table is locked by the current user, AdsIsRecordLocked will return False. If the record or table is locked by another user or by the user that is using a different table handle, AdsIsRecordLocked will return False.
Note AdsIsRecordLocked only tests for record locks on the given table handle (hTable). It does not test for locks acquired on any other table handles even though they refer to the same physical file. It is very fast because it uses the client-side lock list associated with the table rather than making a server request.