Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if file is open exclusively ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503929
Message ID:
00549793
Views:
21
I am putting together a maintenance application and I want to grab
dbc
dct
dcx
dbf
cdx
fpt
ini
prg
exclusively when the app starts so I can do stuff to the files (or just quit if everything can't be grabbed). It looks like VFP's locking is ignored by programs like Excel, but Excel is fine with opening a DBF and preventing VFP from USEing it. What would you recommend for doing an OS-exclusive file lock for everything?



>This does not reliably work. The only reliable way to tell if a file is open exclusively is to try to USE it exclusively and then trap the error.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform