There's probably several valid ways to do this, but my suggestion would be to use the GetMinMax method of the vector class as it will easily return indices...
void bb(){
Dataset dsTemp("Book1",1);
uint indexMin,indexMax;
double dMin, dMax;
dsTemp.GetMinMax(dMin, dMax, &indexMin, &indexMax);
printf("min: %3.2f\nmax: %3.2f\niMin: %i\niMax: %i", dMin, dMax, indexMin, indexMax);
}
J...