Series Count

Ideas and wishes for TeeChart
Post Reply
cbdevelopers
Newbie
Newbie
Posts: 3
Joined: Mon Oct 02, 2006 12:00 am

Series Count

Post by cbdevelopers » Tue Oct 31, 2006 12:16 pm

Could you add Chart.Series.Count ?

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 Oct 31, 2006 12:21 pm

Hi cbdevelopers,

This already exists, eg:

Code: Select all

            int c = tChart1.Series.Count;
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

David Berneda
Site Admin
Site Admin
Posts: 83
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia
Contact:

Post by David Berneda » Tue Nov 14, 2006 3:51 pm

In VCL (Delphi) the syntax is:

Code: Select all

var i : Integer;

i := Chart1.SeriesList.Count;
In C++ Builder:

Code: Select all

int i ;

i = Chart1->SeriesList->Count;

Chart1.Series.Count cannot be done in VCL as "Series" is an indexed property:

Code: Select all

var s : TChartSeries ;

s := Chart1.Series[123];
and indexed properties do not allow standalone use.

Post Reply