Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
? IsFlocked() behavior
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00521938
Message ID:
00522198
Vues:
11
>Doru,
>
>Thanks again. but...
>
>What if the file is locked() by another user on another machine...

Use fopen(), as explained.

>or locked in another form running with a private datasession... Then it appears that IsFLocked() does not work.

It does work, but you'll need to loop trough all datasessions, as... explained.

>I am really looking for a global IsFlocked() function. So far the only option I have is to attempt to Flock() the table. But I would prefer not to actually lock the table to determine the lock status. I may not have another choice.

Combine the two methods:
1 - check current VFP (not datasesion) session using IsFlocked() in a loop through all datasessions
2 - use fopen() for anything outside current VFP session
Doru
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform