Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding, if file is used exclusively
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00425134
Message ID:
00425697
Views:
17
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform