TContourLeves UptoValue
Posted: Mon Sep 22, 2008 7:27 am
Hi
We are getting some problems trying to change by code the contour values of a graphic. We have no problem to set the value of the contour on design-time, the problem is when we try to change this value on run-time, and we get the following error:
Access violation at address 20033204 in module rtl100.bpl
The lines where we try to modify the contours are:
We are getting some problems trying to change by code the contour values of a graphic. We have no problem to set the value of the contour on design-time, the problem is when we try to change this value on run-time, and we get the following error:
Access violation at address 20033204 in module rtl100.bpl
The lines where we try to modify the contours are:
Series2->AutomaticLevels = false;
Series2->NumLevels = 3;
Series2->CreateAutoLevels();
Series2->Levels->Items[0]->UpToValue = 90;
Series2->Levels->Items[1]->UpToValue = 95;
Series2->Levels->Items[2]->UpToValue = 99;