| 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 ) ]
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
- Version 14.0
- Fixed a problem in Matrix.CopyRow when using row names.
- Version 10.2
- Added Matrix.CopyColumn and Matrix.CopyRow functions.
Blog Entries
- MBS FileMaker Plugin, version 13.6pr1
- News about the MBS FileMaker Plugin 10.2
- Neues MBS FileMaker Plugin 10.2
- MBS FileMaker Plugin 10.2 - More than 6200 Functions In One Plugin
- MBS FileMaker Plugin, version 10.2pr4
This function checks for a license.
Created 16th April 2020, last changed 6th November 2026
MarkDown version: MatrixCopyRow.md