GetNumRows
Get the number of rows in a worksheet or matrix.
int GetNumRows( )
Returns the number of rows in the Datasheet including MatrixLayers and Worksheets.
EX1
//Get number of rows in the active datasheet. void Datasheet_GetNumRows_Ex1() { Layer lay = Project.ActiveLayer(); if (!lay) return; Datasheet ds(lay); int nRows = ds.GetNumRows(); printf("The worksheet has %d rows",nRows); }
//Get number of columns in the active matrixlayer. void MatrixLayer_GetNumRows_Ex1() { MatrixLayer ml = Project.ActiveLayer(); if ( !ml ) { printf("Can not access active matrixsheet"); return; } printf("Rows %d\n", ml.GetNumRows()); return; }
Get the number of rows in a Datasheet including MatrixLayers and Worksheets.
Datasheet::GetNumCols, Datasheet::SetNumRows
origin.h