🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Andy Tue, 01 Feb 2005 18:11
OnUpdateRecord
#66
Author: Andy
Date: Tue, 01 Feb 2005 18:11
22 lines
1240 bytes
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
Re: OnUpdateRecord
#67
Author: Andy
Date: Wed, 02 Feb 2005 11:55
28 lines
1401 bytes
Raised on QC as #10753 with attached example files.

Andy

"Andy" <a@b.c> wrote:
>
>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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads