Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I know if a file is already used as a resource f
Message
From
12/02/1999 23:28:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00186749
Message ID:
00187321
Views:
17
You can know it only if the file was opened through a share. I mean: do it without trying to open the file and trap the error.

If you really want to do it this way, see my FAQ about "Who has what file opened on the netwrok" in the Files section.

But, Edward's solution is better because it's simple, it's bullet proof and... it's used by almost everyone. BTW, you can use this very simple method to be sure that your app is opened only once by the same user (which may not be on the same computer!!).

Vlad

>Is not there someway I can just ask if a file is already open?
>
>Brenda
Previous
Reply
Map
View

Click here to load this message in the networking platform