Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check the Exclusive use of DBF
Message
 
 
À
04/07/2000 21:45:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00388198
Message ID:
00388332
Vues:
8
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform