 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Andy Guest
|
Posted: Tue Feb 01, 2005 6:11 pm Post subject: OnUpdateRecord |
|
|
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
|
Posted: Wed Feb 02, 2005 11:55 am Post subject: Re: OnUpdateRecord |
|
|
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 |
|
 |
|
|
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
|
|