Subject | Re: [IBO] IBO/IB_Query PrepareSQL question - does it fire on formcreation? can I avoid that? |
---|---|
Author | Salvatore Besso |
Post date | 2005-10-04T09:05:12Z |
hello Helen,
1. Form creation (but it seems not to be...:-)
2. FormShow
3. ???
As a general behaviour, when I have a data-module associated with the
form, it is usually created before the form and in this case I open the
datasets in the data-module's OnCreate handler so when the form is
created the datasets are already open. If I don't have a data-module
(i.e. data components are on the form) I generally open datasets in the
OnCreate handler.
Cheers
Salvatore
> Don't open datasets until you are ready to have them open.what is in your opinion the best place to open the datasets?
1. Form creation (but it seems not to be...:-)
2. FormShow
3. ???
As a general behaviour, when I have a data-module associated with the
form, it is usually created before the form and in this case I open the
datasets in the data-module's OnCreate handler so when the form is
created the datasets are already open. If I don't have a data-module
(i.e. data components are on the form) I generally open datasets in the
OnCreate handler.
Cheers
Salvatore