Page 1 of 1

Chart series type in CPP

Posted: Tue Jul 09, 2013 5:37 am
by 9236183
Hello,
I thought I had done this before but can't seem to find it. I have a bunch of series and want to go through the series and find a particular series type.

For example I think this works in delphi :-

for t:= 0 Chart1.SeriesCount-1 do
if Chart1.Series[t] is TDonutSeries then

Can you tell me what the equivalent is in CPP ?

Re: Chart series type in CPP

Posted: Tue Jul 09, 2013 5:56 am
by 9236183
found the answer, use dynamic_cast