Is there any way to get the ValueIndex of a Ganttchart when the OnMarkTipToolGetText Event is fired up?
Thanks
JD
Get ValueIndex
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi JD,
I'm afraid this is not possible unless the original text contains it and you can parse the text to obtain the index. You could also search through series labels for the index which contains the text being processed, for example:
I'm afraid this is not possible unless the original text contains it and you can parse the text to obtain the index. You could also search through series labels for the index which contains the text being processed, for example:
Code: Select all
Private Sub TChart1_OnMarkTipToolGetText(ByVal Tool As Long, Text As String)
For i = 0 To TChart1.Series(0).Count - 1
If Text = TChart1.Series(0).PointLabel(i) Then
ValueIndex = i
End If
Next
End Sub
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi JD,
Sure, just added it to be considered for inclusion in next releases.
Sure, just added it to be considered for inclusion in next releases.
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 |