Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Current Datasession settings
Message
 
 
To
18/04/2000 10:49:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00360780
Message ID:
00360888
Views:
26
>>>>>Which method is the best to write the settings for each datasession?
>>>>>Activate,Init,Load...?
>>>>>Thanks.
>>>>
>>>>Load. This is the only form method that fires early enough. ANd if you want them to be set before the tables open, you will have to set DataEnvironment.AutoOpenTables = .F., and change your settings, and call OpenTables() yourself.
>>>Thanks Erik.
>>
>>Just as an add-on, you could put the settings in the Dataenvironment.BeforeOpenTables and leave AutoOpenTables set to .T.. This event fires before the form's Load event.
>
>Yup. But unless you use a subclassed DE defined in a prg (ala CodeBook), you would have to cut and paste this code into every form.

True. Or use a builder and have it automatically insert the code for you. 6 of one, half-dozen of the other *g*.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform