Matrix.RemoveColumn
-------------------

Removes a column.

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

MBS( "Matrix.RemoveColumn"; MatrixRef; Column ) 

**MBS**( **"Matrix.RemoveColumn";** /\* Removes a column. \*/  
**$MatrixRef**; /\* The matrix reference number.e.g. $matrix \*/   
**$Column**) /\* The zero based column number.e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MatrixRef | The matrix reference number. | $matrix |
| Column | The zero based column number. | 2 |

### Result

Returns OK or error.

### Description

Removes a column.  
### Examples

Remove a column:

 Set Variable \[ $r ; Value: MBS ( "Matrix.RemoveColumn"; $matrix ; 1 ) \]  
### See also

- [Matrix.CopyColumn](MatrixCopyColumn.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)

This function checks for a license.

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

  
[Matrix.ReleaseAll](MatrixReleaseAll.md) - [Matrix.RemoveRow](MatrixRemoveRow.md)

[HTML Version](MatrixRemoveColumn.shtml)