Divide function no longer works
Posted: Thu Aug 25, 2005 10:01 pm
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 ?
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 ?