To get Y Error column of XYRange
BOOL GetErrColumn( Column & col, int nIndex = 0, int* pr1 = NULL, int* pr2 = NULL)
TRUE if success.
EX1
// Assume there are three columns in the active sheet. // Output the sum ot the ED column. void XYRange_GetErrColumn_Ex1() { Worksheet wks; wks= Project.ActiveLayer(); XYRange xyData; if( wks ) { xyData.Add("X", wks, 0, 0, -1, 0); xyData.Add("Y", wks, 0, 1, -1, 1); xyData.Add("ED", wks, 0, 2, -1, 2); Column colErr; int nIndex = 0; xyData.GetErrColumn(colErr, nIndex); vectorbase &vv = colErr.GetDataObject(); double dd; vv.Sum(dd); printf("sum of vector is %f\n", dd); } }
XYRange::GetXColumn, XYRange::GetYColumn
origin.h