🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
3 messages
3 total messages Started by Sandi Wijaya Thu, 05 Apr 2001 13:12
Getting event parameter TDataSet *DataSet
#5520
Author: 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.
Re: Getting event parameter TDataSet *DataSet
#5524
Author: Alan Lichtenstein
Date: Thu, 05 Apr 2001 14:43
47 lines
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.
>
>
>
Re: Getting event parameter TDataSet *DataSet
#5529
Author: Mark Cashman
Date: Fri, 06 Apr 2001 04:05
12 lines
1374 bytes
Are these questions about the ADOExpress components or the BDE
components? BDE questions are best asked in
borland.public.cppbuilder.database.desktop.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads