🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5520

Getting event parameter TDataSet *DataSet

#5520
From: Sandi Wijaya
Date: Thu, 05 Apr 2001 13:12
35 lines
1760 bytes
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: <3acc6f36_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,be1707893038b310,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-04-05 06:42:03 PST
From: "Sandi Wijaya" <sandiwijaya@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Getting event parameter TDataSet *DataSet
Date: Thu, 5 Apr 2001 20:12:59 +0700
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 202.95.130.226
Message-ID: <3acc6f36_2@dnews>
X-Trace: dnews 986476342 202.95.130.226 (5 Apr 2001 06:12:22 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews