Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check for Exclusivity
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569279
Message ID:
00569284
Vues:
20
>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)
>
>(2) Ensure there is nobody else using the file (including users in non VFP products who could have the file open (e.g. report Writer)
>
>Thanks in advance for any assistance
>
>regards,
>
>Gerard

USE mytable EXCLUSIVE

You should also trap for this in your error routine, if you can't USE it EXCLUSIVE
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform