MatrixObject::SetNumRows

Description

Set the number of rows and keep same number of columns.

Syntax

BOOL SetNumRows( uint nRows )

Parameters

nRows
[input] Input number of rows to set, must be > 0

Return

Returns TRUE on successful exit and FALSE on failure.

Examples

EX1

// Set number of rows in a matrix to 100
// Requires active matrix window
void MatrixObject_SetNumRows_Ex1()
{
    MatrixLayer    ml = Project.ActiveLayer();
    if(ml)
    {
        BOOL bRet = ml.SetNumRows(100);
        printf("%u Rows\n", ml.GetNumRows());
    }
    else
        printf("Matrix window not active.\n");
}

Remark

See Also

MatrixObject::SetSize, MatrixObject::SetNumCols, MatrixObject::GetNumRows, MatrixObject::GetNumCols, Datasheet::GetNumRows, Datasheet::GetNumCols, Datasheet::SetNumRows

header to Include

origin.h