| View previous topic :: View next topic |
| Author |
Message |
Hubert Anemaat Guest
|
Posted: Tue Feb 03, 2004 9:50 pm Post subject: TDataSource.OnDataChange executed before FormCreate |
|
|
I have a TDatasource on my form. The form is created during runtime e.g.
when pushing a button.
I have the problem that TDatasource.OnDatachange is executed before the
FormCreate.
How can I change this order ? Or better how can I avoid executing
OnDataChange when the form with the datasource is created ? There is no
user who does change any value nor browses through the records when creating
a new form.
Hubert Anemaat
|
|
| Back to top |
|
 |
Wayne Niddery [TeamB] Guest
|
Posted: Tue Feb 03, 2004 10:39 pm Post subject: Re: TDataSource.OnDataChange executed before FormCreate |
|
|
Hubert Anemaat wrote:
| Quote: | I have a TDatasource on my form. The form is created during runtime
e.g. when pushing a button.
I have the problem that TDatasource.OnDatachange is executed before
the FormCreate.
|
Make sure the Dataset is closed at design time and only open it in the
FormCreate method.
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
|
| Back to top |
|
 |
|