Undeclared identifier in TeeChart standard 4.04

Undeclared identifier in TeeChart standard 4.04

Post by Mark V » Thu, 30 Nov 2006 08:40:30


When I import an old delphi4 project into bds2006, the compiler complains of
undeclared identifiers...

procedure TForm.RecalcAxis;
begin
Series1.XValues.RecalcMinMax; // <- E2003 Undeclared identifier:
'RecalcMinMax'
Series1.YValues.RecalcMinMax; // <- E2003 Undeclared identifier:
'RecalcMinMax'
end;

Has this method been deprecated, and if yes is there an alternative?

Thanks
Mark V.
 
 
 

Undeclared identifier in TeeChart standard 4.04

Post by Marjan Sla » Wed, 06 Dec 2006 16:32:20

Hi, Mark.

I'm not sure which TeeChart version are you using now, but with TeeChart v7
this is done automatically when new values are added to series
(TChartValueList Minimum and Maximum properties are set after each Add or
AddXY call).


Regards,
Marjan Slatinek
www.steema.com

 
 
 

Undeclared identifier in TeeChart standard 4.04

Post by Mark V » Thu, 07 Dec 2006 15:38:13

Marjan,

Actually, a document showing the differences between TeeChart standard
versions would really be helpful here. At least I would then know what
methods and properties have changed, been added or deprecated.

Mark.
 
 
 

Undeclared identifier in TeeChart standard 4.04

Post by David Bern » Sat, 09 Dec 2006 01:47:00

Hi Mark
This method was renamed to RecalcStats long time ago, but it was made "protected" instead of public.

This method was replaced with a public boolean variable that indicates if the value list min,max,etc values should be recalculated
again or not:

Series1.YValues.Modified := True;

You can still call the method via a small hacking, but this should not be necessary, setting Modified to True should be enough:

type TMyList=class(TChartValueList);
TMyList(Series1.YValues).RecalcStats;

This is one of the very few (maybe only 3 o 4) items that have been changed or deprecated since version 1, back in 1995 ! <grin>

regards
david
www.teechart.com