Page 1 of 1

delete multiple series at once

Posted: Tue Nov 28, 2006 2:00 am
by 9532946
Hi: I have a chart with 15 series. I want to delete all but series zero. Here is how I'm doing it in my code:

Count = TChart1.SeriesCount
For i = 1 To Count - 1
TChart1.RemoveSeries (1)
Next i

Is there a way to select mulitple series and delete without stepping through one at a time?

Regards,
russ

Posted: Tue Nov 28, 2006 8:51 am
by narcis
Hi Russ,

I'm afraid this is not available, there's RemoveAllSeries method, but this would remove series zero as well.