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

Matrix.InsertRow

Inserts one row into a matrix.

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

Parameters

Parameter Description Example
MatrixRef The matrix reference number. $matrix
Row The zero based row number. 2

Result

Returns OK or error.

Description

Inserts one row into a matrix.

Examples

Try it and insert one row:

Let([
      matrix = MBS("Matrix.New"; 4; 4);
      r = MBS( "Matrix.SetRow"; matrix; 0; "00¶01¶02¶03" );
      r = MBS( "Matrix.SetRow"; matrix; 1; "10¶11¶12¶13" );
      r = MBS( "Matrix.SetRow"; matrix; 2; "20¶21¶22¶23" );
      r = MBS( "Matrix.SetRow"; matrix; 3; "30¶31¶32¶33" );
      r = MBS("Matrix.InsertRow"; matrix; 2);
      csv = MBS("Matrix.CSV"; matrix)
]; csv)

See also

Release notes

  • Version 15.3
    • Added Matrix.InsertRow and Matrix.InsertColumn functions.

Blog Entries

This function is free to use.

Created 22nd May 2025, last changed 22nd May 2025


Matrix.InsertRecordsToSQL - Matrix.JSONRecord