>>>>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