Can anyone tell me how to get a TOracleDataSet to trigger the OnCalcFields event when it is created at run time. I have the following in the .h file...
private:
TOracleDataSet *person;
TStringField *personFULL_NAME;
void __fastcall CalcFields(TDataSet *DataSet);
In the .cpp file...
person=new TOracleDataSet(this);
person->OnCalcFields=CalcFields;
.
.
.
personFULL_NAME=new TStringField(this);
personFULL_NAME->Calculated=true;
.
.
.
person->Open(); // this should trigger the CalcFields event.
I also have an implementation od the CalcFields event handler. However - it does not get triggered. Any ideas anyone?
Thanks in anticipation
John
private:
TOracleDataSet *person;
TStringField *personFULL_NAME;
void __fastcall CalcFields(TDataSet *DataSet);
In the .cpp file...
person=new TOracleDataSet(this);
person->OnCalcFields=CalcFields;
.
.
.
personFULL_NAME=new TStringField(this);
personFULL_NAME->Calculated=true;
.
.
.
person->Open(); // this should trigger the CalcFields event.
I also have an implementation od the CalcFields event handler. However - it does not get triggered. Any ideas anyone?
Thanks in anticipation
John