Article View: borland.public.cppbuilder.database.multi-tier
Article #67Re: OnUpdateRecord
From: Andy
Date: Wed, 02 Feb 2005 11:55
Date: Wed, 02 Feb 2005 11:55
28 lines
1401 bytes
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
Technical Details
Message-ID:
<4200bfce$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41ffc660$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,461a7160166f41cd 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: Re: OnUpdateRecord Newsgroups: borland.public.cppbuilder.database.multi-tier X-User-Info: 159.235.50.12 X-Forwarded-For: 10.225.190.87 References: <41ffc660$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4200bfce$1@newsgroups.borland.com> Date: 2 Feb 2005 03:55:58 -0800 X-Trace: newsgroups.borland.com 1107345358 207.105.83.66 (2 Feb 2005 03:55:58 -0800) Lines: 29 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail