Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Matrix.InsertColumn

Inserts one column into a matrix.

Component Version macOS Windows Linux Server iOS SDK
Matrix 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.InsertColumn"; MatrixRef; Column )   More

Parameters

Parameter Description Example
MatrixRef The matrix reference number. $matrix
Column The zero based column number. 2

Result

Returns OK or error.

Description

Inserts one column into a matrix.

Examples

Insert a column for a calculated value:

# matrix with 2 rows and 2 columns
Set Variable [ $matrix ; Value: MBS( "Matrix.New"; 2; 2 ) ]
# insert a new empty column at index 1
Set Variable [ $r ; Value: MBS( "Matrix.InsertColumn"; $matrix; 1 ) ]
# now the matrix has 3 columns
Set Variable [ $width ; Value: MBS( "Matrix.Width"; $matrix ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix ) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 22nd May 2025, last changed 6th November 2026


Matrix.IndexOfFirstValueMatching - Matrix.InsertOrUpdateRecords


MarkDown version: MatrixInsertColumn.md