Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Razvan,
ISRLOCKED() is useless for the purpose you need (though the docs do not tell you that) because it only reports .T. if the lock was placed by the application doing the test! In your case only PC1 would say .T.
Using RLOCK() is about the only way I know around this, a .F. meaning it *is* locked elsewhere and a .T. meaning you locked it (so you can quickly unlock it if need be).
Good luck,
Jim N
>>>I have 5 records and I locks records 1,3,5 (PC 1).
>>>
>>>I want to found locks records from PC 2.
>>>
>>>IsRLocked() return .F. for every record, if the record
>>>not lock from PC 2 (because the locks is set by PC 1.)
>>>
>>>What function I can use to locate the records unlocked.
>>>
>>>Thanks.
>>
>>Have you try relock()
>>If the record is locked rlock returns .f.
>>if not rlock returns .t. and locks the recod.
>
>Yes, RLOCK() is good, but i don't want to lock the record.
>I want to see what records is locks in this moment.
>I need to do this operation on every 10 seconds.
>
>If the records on the table is 1000 the method is not good.
>
>What did yoy say ?
>
>Thanks.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement