a) I have created a new chart tool
b) I activate the charttool in code
c) I assigned a series to it
d) I have created a Tstring variable to hold results
when running the code I am getting an "access violation" error. See code below
Code: Select all
var
sLines : TStrings;
MyPoints: Array [0 .. 10] of TPointSeries;
//code to format chart
chartTool3.Active := true;
chartTool3.Series := MyPoints[iseries];
//code to populate MyPoints[iseries]
chartTool3.Statistics(sLines); // access violation