【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.12.23 Datasheet::SetNumRows
Contents
Description
Set the number of rows in a Datasheet.
Syntax
BOOL SetNumRows( uint nRows, BOOL bUndo = FALSE )
Parameters
- nRows
- [input] Input number of rows to set
- bUndo
- [input] true to support undo mechanism
Return
Returns TRUE on successful exit and FALSE on failure.
Examples
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; } }
Remark
Set the number of rows in a Datasheet including MatixLayers and Worksheets.
See Also
Datasheet::GetNumRows, Datasheet::GetNumCols
Header to Include
origin.h