Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Access Denied
Message
 
To
28/11/2001 17:44:12
Todd Brown
Teachers Credit Union
Granger, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00587237
Message ID:
00587240
Views:
24
This message has been marked as the solution to the initial question of the thread.
>We have set up some processes that run automatically at night and once in a while someone has a table open at the time we are trying to use it and I am looking for a way to detect if the file is already being used exclusively. We can detect if the table is there but not if it is being accessed exclusively. Is there a way to do that.
>
>Thanks
>Todd
Try with something like:
lError = .F.
on error lError = .T.
use MyTable exclusive

if lError
   ? 'could not open table exclusively'
else
   * regular processing
endif
Hector Correa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform