ProductName  

Sets / returns the number of matrix columns.

Syntax

MatrixObject.Cols = NumOfCols
NumOfCols = MatrixObject.Cols

Property Value

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

Parameters

NumOfCols
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 1302 is returned if NumOfCols parameter is less than 1 or greater than MaxSize property.

Example

See Also

Rows Property | Size Method | MaxSize Property

Applies To: Matrix | CMatrix