Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to see if file can be used exclusive w/o causing err
Message
De
15/08/2000 12:41:45
 
 
À
15/08/2000 12:20:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00405024
Message ID:
00405056
Vues:
20
>Use FLOCK(). If it returns .f., then the file cannot be locked.
>
>use myfile
>if flock()
> use myfile excl
>else
> && whatever error coding you want
>endif
>
>

This isn't reliable. Someone else can grab the file between the FLOCK() and the USE EXCLUSIVE.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform