Get the format type of each element from the mixed type DatasetObject.
bool GetElementTypes( vector<uint> & vnTypes, int i1 = 0, int i2 = -1 )
TRUE on success and FALSE on failure.
EX1
void DatasetObject_GetElementTypes_Ex1() { Worksheet wks = Project.ActiveLayer(); if( !wks ) return; Column col = wks.Columns(0); DatasetObject obj(col); vector<uint> vTypes; if ( obj && obj.GetElementTypes(vTypes) ) { for(int ii = 0; ii < vTypes.GetSize(); ii++) if (OKCOLTYPE_TEXT == vTypes[ii]) printf("Row %d is Text\n", ii+1); } else out_str("fail to get element types."); }
origin.h