BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDataSource.OnDataChange executed before FormCreate

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Hubert Anemaat
Guest





PostPosted: Tue Feb 03, 2004 9:50 pm    Post subject: TDataSource.OnDataChange executed before FormCreate Reply with 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.

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





PostPosted: Tue Feb 03, 2004 10:39 pm    Post subject: Re: TDataSource.OnDataChange executed before FormCreate Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.