Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic questions on VFP table searching.
Message
 
 
To
13/11/1998 19:50:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00157610
Message ID:
00157714
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform