Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Used() function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00217407
Message ID:
00217453
Views:
20
Sylvain,

You would get an FLOCK() even if other users had the table open but didn't have any locks. The only way to do this is to resort to an ON ERROR routine. This is actually a good way to do it anyway because as you point out even if you could check first to see if anyone had the table open someone could still open it between the time you checked and the time you opened it.

>You could use the table and check the result of FLock() before trying to use it exclusively. You still have a chance that another user open the table between the time that you close the table and reopen it exclusively, though.
>
>>IS THERE A FUNCTION to determine if a file is already open ON THE NETWORK b4 trying to use it exclusively. And without resorting to an error routine?
>>Wondering.
Previous
Reply
Map
View

Click here to load this message in the networking platform