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

Matrix.CopyRow

Copies a row from one (or same) matrix to another row.

Component Version macOS Windows Linux Server iOS SDK
Matrix 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.CopyRow"; Matrix1; Row1; Matrix2; Row2 )   More

Parameters

Parameter Description Example
Matrix1 The matrix reference number. $matrix1
Row1 The zero based row number. 2
Matrix2 The matrix reference number. $matrix2
Row2 The zero based row number. 2

Result

Returns OK or error.

Description

Copies a row from one (or same) matrix to another row.

Examples

Copy a row to another matrix:

# source matrix from SQL and an empty target with same width
Set Variable [ $source ; Value: MBS( "Matrix.NewWithSQL"; ""; "SELECT Name, City FROM Contacts" ) ]
Set Variable [ $target ; Value: MBS( "Matrix.New"; 1; 2 ) ]
# copy row 0 of the source to row 0 of the target
Set Variable [ $r ; Value: MBS( "Matrix.CopyRow"; $source; 0; $target; 0 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $source ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $target ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 16th April 2020, last changed 6th November 2026


Matrix.CopyContent - Matrix.DataType


MarkDown version: MatrixCopyRow.md