Article View: borland.public.cppbuilder.database.ado
Article #5524Re: Getting event parameter TDataSet *DataSet
From: Alan Lichtenstein
Date: Thu, 05 Apr 2001 14:43
Date: Thu, 05 Apr 2001 14:43
47 lines
2149 bytes
2149 bytes
Why are you using TDataSet? I believe TDataSet is an abstract class with
true virtual methods.
This means it should not be instantiated directly since these virutal
methods have not yet been implemented.
Try using TDBDataSet or TTable instead...
Sandi Wijaya wrote in message <3acc6f36_2@dnews>...
>Hello everyone !
>
>I have problem like this :
>
>void __fastcall TDatModMaintFinPeriods::QryFinPeriodBeforePost(
> TDataSet *DataSet)
>{
> if (FrmMaintFinPeriods -> WriteMode == "Insert")
> {
> Finperiod_up(DataSet);
> }
> else
> {
> Finperiod_up(FrmMaintFinPeriods->old_record, DataSet);
> };
>}
>
>void __fastcall TDatModMaintFinPeriods::QryFinPeriodBeforeEdit(
> TDataSet *DataSet)
>{
>FrmMaintFinPeriods->old_record = DataSet;
>
>};
>
>I want to save old record before editting record to variable old_record,
How
>should I do because old_record always have the same value with TDataSet
>*DataSet, so I can not access the value before editting.
>
>And I have another Question too,
>
>TDataSet *temp = new TDataSet(NULL);
>
>but it trigs a error that says "Cannot create instance of abstract class
>'TDataSet'". Why it can be happens ? and if I try to create variable from
>class TQuery, it's working. Anyone could tell me ,please.
>
>
>
Technical Details
Message-ID:
<3acc84aa$1_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3acc6f36_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,be1707893038b310 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-04-05 07:50:10 PST From: "Alan Lichtenstein" <alanl@sss.sungard.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3acc6f36_2@dnews> Subject: Re: Getting event parameter TDataSet *DataSet Date: Thu, 5 Apr 2001 10:43:51 -0400 Lines: 49 Organization: SunGard X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Host: 198.62.209.10 Message-ID: <3acc84aa$1_2@dnews> X-Trace: dnews 986481834 198.62.209.10 (5 Apr 2001 07:43:54 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews