Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding, if file is used exclusively
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00425134
Message ID:
00425697
Vues:
16
Hi Nadya,

*Therefore I have to find, if file is already in use, and if it's, is it *exclusive access or non-exclusive. If file is used exclusevely, does it mean, *that it could not be opened even in shared mode on another computer?

- You couldn't open this database.

*If it's true, each use function should be surrounded with quite long piece of *code...

- I had written function with all this long code for open database. But good rule - don't give anybody open exclusively like administrator. You can use password access for it. I think this is administratives' problem.

For check can I open it or no - I used next:
- turn off error tracing
- try open datebase by exclusively
- if it not open - somebody has opened it

For checking if somebody had opened it - one way in your application (if your customer have not advanced user) - make small database with flags that some databases have been opened. And you can check it in your applications. You must be cheif.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform