Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check to see if a file is open
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01223969
Message ID:
01224002
Views:
17
Hmmm, I never thought anyone could be that fast! :) That is a good point. Someone could open the file in between even though it is such a short time.

Thanks, I'll make sure I include ON ERROR then.

Cecil

>You'll have to try to USE the table and catch the error with ON ERROR if it can't be opened. The reason you can't use FOPEN is that on a busy system, it is possible for a second user to open the table between the FOPEN and the USE.
>
>>How do you check to see if a file is open without attempting to open it first?
>>
>>I looked at FOPEN(cFileName, nAttribute) and wonder if this would do the job, or is there more to this? I have done this a long time ago, I think.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform