Matrix.AddColumn
----------------

Adds one column to 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.AddColumn"; MatrixRef ) 

**MBS**( **"Matrix.AddColumn";** /\* Adds one column to a matrix. \*/  
**$MatrixRef**) /\* The matrix reference number.e.g. $matrix \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Adds one column to a matrix.  
### Examples

Add a column and fill it with values:

 Set Variable \[ $r ; Value: MBS ( "Matrix.AddColumn"; $matrix ) \]   
Set Variable \[ $r ; Value: MBS ( "[Matrix.SetColumn](MatrixSetColumn.md)"; $matrix ; 3; "2¶4¶12" ) \]  
### See also

- [Matrix.Add](MatrixAdd.md)
- [Matrix.AddColumns](MatrixAddColumns.md)
- [Matrix.CopyColumn](MatrixCopyColumn.md)
- [Matrix.GetColumn](MatrixGetColumn.md)
- [Matrix.SetColumn](MatrixSetColumn.md)

### Blog Entries

- [CSV in FileMaker with MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2022-10-11/CSV_in_FileMaker_with_MBS_File/monkeybreadsoftware_blog_filemaker)
- [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 31](https://filemaker-magazin.de/neuigkeit/4053-Appetithappen-FMM_201904)

This function checks for a license.

Created 8th April 2019 , last changed 17th December 2019

  
[Matrix.Add](MatrixAdd.md) - [Matrix.AddColumns](MatrixAddColumns.md)

[HTML Version](MatrixAddColumn.shtml)