Clear TChartValues
Posted: Thu Nov 22, 2012 1:37 pm
Hi,
I have very strange errors in my SW and I am not sure what I am doing wrong. Well I am using some variables of TChartValues data type and I would like to clear data in that array. What is the proper way to do that? The Way I am doing it now it is not working ok?
THANKS FOR YOUR HELP!
BR
I have very strange errors in my SW and I am not sure what I am doing wrong. Well I am using some variables of TChartValues data type and I would like to clear data in that array. What is the proper way to do that? The Way I am doing it now it is not working ok?
Code: Select all
Var1: TChartValues;
Var2: TChartValues;
SetLength(Var1, 1024);
SetLength(Var2, 2056);
// init array
FillChar(var1, 1024 * sizeOf(TChartValue), 0); ///--> makes error
FillChar(var2, 2056 * sizeOf(TChartValue), 0); ///--> makes error
// ... more coder
...
BR