Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check the Exclusive use of DBF
Message
 
 
To
04/07/2000 21:45:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00388198
Message ID:
00388332
Views:
9
>Is there any function that can check a FoxPro .DBF is used by user shared or exclusively?

Hi Daniel,

This is the code I use (thanks Mike Helland for the idea).

local lcSaveError
lcSaveError=on('error')
on error
use DataDict alias DataDict in 0 exclusive
if !used('DataDict') && Could not be opened exclusively
=messagebox('DataDict table is already opened by another user',48,'Cancel...')
on error &lcSaveError
return .f.
endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform