Page 1 of 1

Divide function no longer works

Posted: Thu Aug 25, 2005 10:01 pm
by 9335265
This code used to work with TeeChart 5 and 6, but no longer works with version 7:

I have programmatically added 2 database series, rDollarSeries and rUnitSeries (which display OK), and then added a new series called bSeries. This code should define bSeries as a calculation of the average price, ie Dollars/Units:

theDiv := TDivideTeeFunction.Create(ChartForm);
bSeries.SetFunction(theDiv);
bSeries.DataSources.Add(rDollarSeries);
bSeries.DataSources.Add(rUnitSeries);
bSeries.FunctionType.Period := 1;

But it no longer works :(

Is there a new technique for doing this ?

Posted: Fri Aug 26, 2005 8:04 am
by narcis
Hi Mikkel,

You could try using bSeries.CheckDataSource after defining the datasources.