TOracleDataSet constructor

dlstites

Member²
I tried the following and it wouldn't compile

TOracleDataSet *Ods = new TOracleDataSet();

I have a non-visual component where I would
like to dynamically create a data set and
the delete.

Thanks in advance
 
Hi,

the Oracledataset constructor has the Owner as
parameter so you should use the following:

TOracleDataSet *Ods=new TOracleDataSet(NULL);

When you use NULL you have to delete the instance by yourself !!!!

Lars
 
Back
Top