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 ?
Divide function no longer works
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Mikkel,
You could try using bSeries.CheckDataSource after defining the datasources.
You could try using bSeries.CheckDataSource after defining the datasources.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |