Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5.0 - Dataenvironment - Finding open tables
Message
De
13/12/1996 17:24:03
 
 
À
13/12/1996 14:00:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00015076
Message ID:
00015091
Vues:
31
>Hello all. I was wondering if there is a way at runtime to look at the dataenvironment of a form and see what tables are open? I am developing a generic form class to handle management of tables and would like to be able to tell what tables have been opened. Thanks.

If Dataenvironment.AutoOpenTables=.t. all tables are open unless you close them manually. Otherwise if AutoOpenTables=.f. all tables are closed until you call Dataenvironment.Opentables and again all tables will be open.
If you want to check dataenvironment for not only current form but also for some parent form you can just check cursor names (store them in array?) from both Dataenvironments.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform