Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check for Exclusivity
Message
De
16/10/2001 16:25:59
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569279
Message ID:
00569292
Vues:
25
>Hi.
>I have a form, with a file set up in the data environment.
>On a button of the form, I have code to Zap the file.
>
>How do I:
>(1) Set Exclu on for the file (so that I can zap it)
> (Overall in my APP, Exclu is set off so from the DE, the file will not be open exclusively)

To see if a file can be opened exclusive (and to temporarily get a lock on it), you can do:

nFH = FOPEN( 'yourFile.DBF',11) will be -1 if the file is in use anywhere else. Note, you'll have to FLCOSE(nFH) the file before you can USE it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform