Hi all.
I am using the TChart control that comes with Delphi 5.
Now the series type can be any kind, i.e. Line, Bar, area, etc, BUT when it comes to
plotting the data, I have to fcure out the chart type then duplicate the code for each
type.
i.e
Case ChartType of
1: create series type, then plot it
2: create series type, then plot it
3: create series type, then plot it
end;
Now the problem here IS code repition.
IS there a way i can have a generic variable that can ref. the series type ?
i.e. gl_SeriesType := TPieSeries.Create(nil);
gl_SeriesType := TBarSeries.Create(nil);
blah blah...
This would simplify my code..
Anyone know ??
Thanks, Jeremy Coulter
Jeremy Coulter (Manager)
Visual Software Solutions
Christchurch, New Zealand
PH 03-3521595
FAX 03-3521596
MOBILE 021-2533214
www.vss.co.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"