Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic questions on VFP table searching.
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157610
Message ID:
00157714
Vues:
21
>Is it true that every form and report with a private data session opens the database container when it fires up? Or is it possible to open the dbc once in program MAIN and let that dbc dictate what tables are available to subsequent forms/reports? I want tables in the default directory to be ignored sometimes.
There are many SET commands scoped to the datasession. One is SET DATABASE TO . The DBC is not opened once for every form with a private DS. You will, however, need to take care of your SETs. I handle this in the LOAD event of my form baseclass.

See VFP help on SET DATASESSION for list of SET commands that scope to each DS.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform