SetNumRows
Set the number of rows in a Datasheet.
BOOL SetNumRows( uint nRows, BOOL bUndo = FALSE )
Returns TRUE on successful exit and FALSE on failure.
EX1
//Set the number of the worksheet rows to 50. int Datasheet_SetNumRows_Ex1() { Worksheet wks; wks.Create("origin.otm", CREATE_VISIBLE); wks.SetNumRows(50); return wks.GetNumRows(); }
EX2
//Set the number of the matrix rows to 50. int Datasheet_SetNumRows_Ex2() { MatrixLayer ml; MatrixPage mp; mp = Project.MatrixPages(0); if(mp.IsValid()) { ml = mp.Layers(0); ml.SetNumRows(50); return ml.GetNumRows(); } else { printf("No matrices in project\n"); return 0; } }
Set the number of rows in a Datasheet including MatixLayers and Worksheets.
Datasheet::GetNumRows, Datasheet::GetNumCols
origin.h