Hi Hajo,
You can use the Data_list function, as in the example code below. The Data_list function also has a third argument to set the precision for matching the value.
Easwar
OriginLab.
void findy(string strDataset, double y)
{
Dataset dsY(strDataset);
if(dsY)
{
int iRow = Data_list(y, &dsY);
if(iRow == -1)
printf("value not found!\n");
else
printf("found %f at row index %d\n", dsY[iRow], iRow+1);
// iRow+1 for row index in GUI, iRow for row index in OC
}
else printf("invalid dataset!\n");
}