Matrix.Clone
------------

Creates a copy of a matrix.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Matrix](component_Matrix.md) | [9.2](newinversion92.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Matrix.Clone"; MatrixRef ) 

**MBS**( **"Matrix.Clone";** /\* Creates a copy of a matrix. \*/  
**$MatrixRef**) /\* The matrix reference number.e.g. $matrix \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MatrixRef | The matrix reference number. | $matrix |

### Result

Returns matrix reference number or error.

### Description

Creates a copy of a matrix.  
Please call [Matrix.Release](MatrixRelease.md) later to free object.  
### Examples

Clone matrix:

 Set Variable \[ $CloneMatrix ; Value: MBS ("Matrix.Clone"; $Matrix ) \]  
### See also

- [Matrix.Clear](MatrixClear.md)
- [Matrix.Release](MatrixRelease.md)

### Blog Entries

- [Matrix functions for FileMaker](https://www.mbsplugins.de/archive/2019-05-28/Matrix_functions_for_FileMaker/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2019, Seite 30](https://filemaker-magazin.de/neuigkeit/4053-Appetithappen-FMM_201904)

This function checks for a license.

Created 8th April 2019 , last changed 2nd November 2020

  
[Matrix.ClearValues](MatrixClearValues.md) - [Matrix.ConvertDataType](MatrixConvertDataType.md)

[HTML Version](MatrixClone.shtml)