>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