Matrix.CopyColumn
-----------------

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

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

MBS( "Matrix.CopyColumn"; Matrix1; Column1; Matrix2; Column2 ) 

**MBS**( **"Matrix.CopyColumn";** /\* Copies a column from one (or same) matrix to another column. \*/  
**$Matrix1**; /\* The matrix reference number. \*/   
**$Column1**; /\* The zero based column number.e.g. 2 \*/   
**$Matrix2**; /\* The matrix reference number. \*/   
**$Column2**) /\* The zero based column number.e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Matrix1 | The matrix reference number. | $matrix1 |
| Column1 | The zero based column number. | 2 |
| Matrix2 | The matrix reference number. | $matrix2 |
| Column2 | The zero based column number. | 2 |

### Result

Returns OK or error.

### Description

Copies a column from one (or same) matrix to another column.  
### Examples

Copy second column to third:

 MBS ( "Matrix.CopyColumn"; $matrix ; 1; $matrix ; 2 )  
### See also

- [Matrix.AddColumn](MatrixAddColumn.md)
- [Matrix.AddColumns](MatrixAddColumns.md)
- [Matrix.CopyContent](MatrixCopyContent.md)
- [Matrix.GetColumn](MatrixGetColumn.md)
- [Matrix.RemoveColumn](MatrixRemoveColumn.md)
- [Matrix.SetColumn](MatrixSetColumn.md)
- [Matrix.SwapColumns](MatrixSwapColumns.md)

### Release notes

- **Version 10.2**
    - Added [Matrix.CopyColumn](https://www.mbsplugins.eu/MatrixCopyColumn.shtml) and [Matrix.CopyRow](https://www.mbsplugins.eu/MatrixCopyRow.shtml) functions.

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-12/Neues_MBS_FileMaker_Plugin_102/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.2 - More than 6200 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-05-12/MBS_FileMaker_Plugin_102_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr4](https://www.mbsplugins.de/archive/2020-04-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 16th April 2020 , last changed 16th April 2020

  
[Matrix.ConvertDataType](MatrixConvertDataType.md) - [Matrix.CopyContent](MatrixCopyContent.md)

[HTML Version](MatrixCopyColumn.shtml)