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 

OnUpdateRecord

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Andy
Guest





PostPosted: Tue Feb 01, 2005 6:11 pm    Post subject: OnUpdateRecord Reply with quote




Hi,

I am having some trouble with the OnUpdateRecord event for a TQuery on a RemoteDataModule. The event gets fired but the first parameter (DataSet) doesn't seem to be populated.

so, the following fails,

void __fastcall TMDbRDM::OnUpdateRecord(TDataSet *DataSet,
TUpdateKind UpdateKind, TUpdateAction &UpdateAction)
{

TQuery *aQuery = dynamic_cast<TQuery*>(DataSet);
....
....

At this point, aQuery == NULL.

How can this be?

TIA.

Andy
Back to top
Andy
Guest





PostPosted: Wed Feb 02, 2005 11:55 am    Post subject: Re: OnUpdateRecord Reply with quote




Raised on QC as #10753 with attached example files.

Andy

"Andy" <a@b.c> wrote:
Quote:

Hi,

I am having some trouble with the OnUpdateRecord event for a TQuery on a RemoteDataModule. The event gets fired but the first parameter (DataSet) doesn't seem to be populated.

so, the following fails,

void __fastcall TMDbRDM::OnUpdateRecord(TDataSet *DataSet,
TUpdateKind UpdateKind, TUpdateAction &UpdateAction)
{

TQuery *aQuery = dynamic_cast<TQuery*>(DataSet);
...
...

At this point, aQuery == NULL.

How can this be?

TIA.

Andy


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Multi-Tier) 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.