Getting YValues from a TColorGridSeries
Posted: Thu Oct 27, 2005 8:14 am
for (x=0;x<1983;x=x+n)
{
for (z=0;z<987;z=z+m)
{
result=RoundTo(sin(x*Pi/180)*sin(z*Pi/180)+2,-3); //Rango de 1 a 3;
Series1->AddXYZ(x,result,z);
index=Series1->Clicked(x,z);
if (index!=-1 ) data= float(Series1->YValues->Value[index]);
data= Series1->GetXZValue(x,z);
}
}
Hello,
I’ve written this program to use the function GetXZValue to get the Y value of a TcolorGrid Serie. In this program, the index assigned is always –1 so I can’t get the correct value usuing Series1->YValues->Value[index]. And the other way was using GetXZValue but it always gives a data equal to zero. So… how could I use afterwards the values of Series1? Which function should I use?
Thank you in advance,
{
for (z=0;z<987;z=z+m)
{
result=RoundTo(sin(x*Pi/180)*sin(z*Pi/180)+2,-3); //Rango de 1 a 3;
Series1->AddXYZ(x,result,z);
index=Series1->Clicked(x,z);
if (index!=-1 ) data= float(Series1->YValues->Value[index]);
data= Series1->GetXZValue(x,z);
}
}
Hello,
I’ve written this program to use the function GetXZValue to get the Y value of a TcolorGrid Serie. In this program, the index assigned is always –1 so I can’t get the correct value usuing Series1->YValues->Value[index]. And the other way was using GetXZValue but it always gives a data equal to zero. So… how could I use afterwards the values of Series1? Which function should I use?
Thank you in advance,