🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #66

OnUpdateRecord

#66
From: 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
Technical Details
Message-ID: <41ffc660$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,461a7160166f41cd,start
X-Google-Attributes: gidfcd2b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andy" <a@b.c>
Sender: "Andy" <a@b.c>
Reply-To: "Andy" <a@b.c>
Subject: OnUpdateRecord
Newsgroups: borland.public.cppbuilder.database.multi-tier
X-User-Info: 159.235.50.12     
X-Forwarded-For: 10.225.190.87
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41ffc660$1@newsgroups.borland.com>
Date: 1 Feb 2005 10:11:44 -0800
X-Trace: newsgroups.borland.com 1107281504 207.105.83.66 (1 Feb 2005 10:11:44 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail