Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOPEN() to go exclusive
Message
 
À
02/08/2003 12:19:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00816200
Message ID:
00816205
Vues:
22
>>Have you tried using FILE() to check for the file?
>
>Yes, this is a simplified version of the code. In the code here, we have IF FILE()... before ERASE. However, it is so close that even if IF FILE()... succeeds, by the time it reaches the ERASE line, it's too late.

What about using TRY ...CATCH if you are using VFP 8 or ON ERROR in VFP 7 or lower. If one or more users detected the presence of the file, the first one is going to fail to ERASE (then ignore error) , the second should succed...
Nelson F. Marmol
www.softland-inc.com

"Beware of programmers who carry screwdrivers."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform