Divide function no longer works

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mikkel
Newbie
Newbie
Posts: 3
Joined: Tue Dec 16, 2003 5:00 am
Location: Terra Australis

Divide function no longer works

Post by Mikkel » 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 ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Aug 26, 2005 8:04 am

Hi Mikkel,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply