GetDataObject
Get the Dataset associated with a column as a vectorbase class reference.
vectorbase & GetDataObject( )
a reference to the vectorbase class object for the associated dataset in the column.
EX1
// Active window should be a worksheet with data void Column_GetDataObject_Ex1() { Worksheet wks = Project.ActiveLayer(); if( wks ) { int ii = 1; foreach(Column cc in wks.Columns) { printf("Col(%d)'s name is %s\n",ii++, cc.GetName()); if( cc.GetFormat() != OKCOLTYPE_TEXT ) { vectorbase &aa = cc.GetDataObject(); if( aa.GetSize() < 1 ) return; double vv; aa.Sum(vv); printf("sum of vector is %f\n", vv); } } } }
Get the Dataset associated with a column as a vectorbase class reference
for using in functions that expect a vectorbase class. Using vectorbase will
allow the same function to be used on any data type.
origin.h