index out of range error
Posted: Wed Feb 09, 2005 10:01 am
Hello,
I am using the chart to present info from a collection,if I load a collection and it is being presented on a chart (line series) and I am pressing a point on a line than I am loading this line but with other data where the number of points is less than the previous and than I am getting an error because the chart excpects to get the point it was pressed before.
For example: I am pressing (9,20) and than loading data with only 3 points -> I get an error.
Could you please explaine me how can I init the chart each time,not to expect those points??
(I tried with the tChart1.Series[0].Clear(); but it didn't affect it)
Thanks a lot!
I am using the chart to present info from a collection,if I load a collection and it is being presented on a chart (line series) and I am pressing a point on a line than I am loading this line but with other data where the number of points is less than the previous and than I am getting an error because the chart excpects to get the point it was pressed before.
For example: I am pressing (9,20) and than loading data with only 3 points -> I get an error.
Could you please explaine me how can I init the chart each time,not to expect those points??
(I tried with the tChart1.Series[0].Clear(); but it didn't affect it)
Thanks a lot!