Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ISRLOCKED()
Message
De
17/10/1999 08:28:41
 
 
À
17/10/1999 08:15:52
Razvan Alexandru
Soft Team Solutions Srl
Bucharest, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00277411
Message ID:
00277418
Vues:
21
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
Fil
Voir

Click here to load this message in the networking platform