ProductName  

Sets / returns the number of matrix rows.

Syntax

MatrixObject.Rows = NumOfRows
NumOfRows = MatrixObject.Rows

Property Value

Read / write. Long integer representing the number of matrix rows.

Parameters

NumOfRows
A Long integer greater or equal to 1 and less than or equal to MaxSize property.

Remarks

You can either use Size method or set both Rows and Cols properties, in order to size a matrix.

Resizing a matrix preserves its previous data.

Error Codes

Error 1301 is returned if NumOfRows parameter is less than 1 or greater than MaxSize property.

See Also

Cols Property | Size Method

Applies To: Matrix | CMatrix