Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of Tables
Message
 
À
26/07/2002 04:26:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00682892
Message ID:
00682906
Vues:
18
>How can I programatically Know if one is using a particular table in the database. I have a stock taking program that only works for a user at a time.

You can try to use the table exclusively and trap the error
on error store .T. to InUse
use MyTable in 0 exclusive
if InUse
  * It's open else where
endif
Don't forget to save and restore the previous on error.
HTH
Caroline
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform