Hi:
When I try to set a series name as follows:
With TChart1(TChartIndex).Series(foo)
' remove previous existing points from the Series
.Clear
.Name = Blox(MyBID).ebLabel
I get a runtime error complaining that the contents of "eblabel" (a simple string) is "not a valid component name".
Isn't this the way to override the "series0, series1" names used by tchart by default? If not, how does one do this?
Thanks,
Matt
setting a series name
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Matt,
Yes, code below works fine for me here.
Which is the exact string you have in Blox(MyBID).ebLabel?
Thanks in advance.
Yes, code below works fine for me here.
Code: Select all
.Series(0).Name = "foo"
.Series(1).DataSource = "foo"
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi:
The string is: " Commodity X Amount"
The code is:
With TChart1(TChartIndex).Series(foo)
' remove previous existing points from the Series
.Clear
.Name = Blox(MyBID).ebLabel
' add new points to the Series...
For i = 0 To NumXNodes - 1
.Add XNodes(i).Value, XNodes(i).Name, clTeeColor
Next i
End With
The string is: " Commodity X Amount"
The code is:
With TChart1(TChartIndex).Series(foo)
' remove previous existing points from the Series
.Clear
.Name = Blox(MyBID).ebLabel
' add new points to the Series...
For i = 0 To NumXNodes - 1
.Add XNodes(i).Value, XNodes(i).Name, clTeeColor
Next i
End With