delete multiple series at once

TeeChart for ActiveX, COM and ASP
Post Reply
Russ
Newbie
Newbie
Posts: 18
Joined: Thu Nov 02, 2006 12:00 am
Location: Chattanooga, TN
Contact:

delete multiple series at once

Post by Russ » Tue Nov 28, 2006 2:00 am

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

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

Post by Narcís » Tue Nov 28, 2006 8:51 am

Hi Russ,

I'm afraid this is not available, there's RemoveAllSeries method, but this would remove series zero as well.
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