Matrix.GetColumnNames
---------------------

Queries column names.

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

MBS( "Matrix.GetColumnNames"; MatrixRef ) 

**MBS**( **"Matrix.GetColumnNames";** /\* Queries column names. \*/  
**$MatrixRef**) /\* The matrix reference number.e.g. $matrix \*/ 

### Parameters

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

### Result

Returns list or error.

### Description

Queries column names.  
### Examples

Try the column names:

 Set Variable \[ $matrix ; Value: MBS ("[Matrix.New](MatrixNew.md)"; 5; 6) \]   
\# name columns   
Set Variable \[ $r ; Value: MBS ("[Matrix.SetColumnName](MatrixSetColumnName.md)"; $matrix ; 0; "First Name") \]   
Set Variable \[ $r ; Value: MBS ("[Matrix.SetColumnName](MatrixSetColumnName.md)"; $matrix ; 1; "Last Name") \]   
Set Variable \[ $r ; Value: MBS ("[Matrix.SetColumnName](MatrixSetColumnName.md)"; $matrix ; 2; "City") \]   
Set Variable \[ $r ; Value: MBS ("[Matrix.SetColumnName](MatrixSetColumnName.md)"; $matrix ; 3; "Amount") \]   
\# show names   
Show Custom Dialog \[ "Column Names" ; MBS ("Matrix.GetColumnNames"; $matrix ) \]   
\# free   
Set Variable \[ $r ; Value: MBS ("[Matrix.Release](MatrixRelease.md)"; $matrix ) \]  
### See also

- [Matrix.GetColumn](MatrixGetColumn.md)
- [Matrix.GetColumnName](MatrixGetColumnName.md)
- [Matrix.GetRowNames](MatrixGetRowNames.md)
- [Matrix.New](MatrixNew.md)
- [Matrix.Release](MatrixRelease.md)
- [Matrix.SetColumn](MatrixSetColumn.md)
- [Matrix.SetColumnName](MatrixSetColumnName.md)
- [Matrix.SetColumnNames](MatrixSetColumnNames.md)

### 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)

This function checks for a license.

Created 2nd April 2020 , last changed 10th November 2025

  
[Matrix.GetColumnName](MatrixGetColumnName.md) - [Matrix.GetRow](MatrixGetRow.md)

[HTML Version](MatrixGetColumnNames.shtml)