Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for Locked Files
Message
From
24/06/1999 12:13:40
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00233514
Message ID:
00233539
Views:
25
>I am running a VFP 6.0 app on a network which is using the same tables I am using. The other app uses the files exclusively. I need to be able to check if the files (cust.dbf) is in use by another computer so my code doesn't bomb out when it goes to to a USE command. I tried ISFLOCKED() but it needs an alias and I can't create the alias without issuing the USE command. HELP!

ISFLOCK() will tell you if you have a file lock on the file, not other people. The best thing is to trap for the error in an error method or your ON ERROR handler.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform