Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Current Datasession settings
Message
From
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:
00360845
Views:
14
>>>>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.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform