ListDialog.SetColumnHeader
--------------------------

Sets the column header text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ListDialog](component_ListDialog.md) | [9.2](newinversion92.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "ListDialog.SetColumnHeader"; Index; Text ) 

**MBS**( **"ListDialog.SetColumnHeader"** /\* Sets the column header text. \*/  
**$Index**; /\* The index of the column starting with zero for the first one. e.g. 0 \*/   
**$Text**) /\* The text for the column header. e.g. "Hello" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | The index of the column starting with zero for the first one. | 0 |
| Text | The text for the column header. | "Hello" |

### Result

Returns OK or error.

### Description

Sets the column header text.  
### Examples

Set column headers:

 Set Variable \[ $r ; Value: MBS ("[ListDialog.SetColumnCount](ListDialogSetColumnCount.md)"; 2) \]   
Set Variable \[ $r ; Value: MBS ("ListDialog.SetColumnHeader"; 0; "Column left") \]   
Set Variable \[ $r ; Value: MBS ("ListDialog.SetColumnHeader"; 1; "Column right") \]  
### See also

- [ListDialog.ClearColumnHeaders](ListDialogClearColumnHeaders.md)
- [ListDialog.GetColumnHeader](ListDialogGetColumnHeader.md)
- [ListDialog.GetColumnWidth](ListDialogGetColumnWidth.md)
- [ListDialog.SetColumnCount](ListDialogSetColumnCount.md)
- [ListDialog.SetColumnWidth](ListDialogSetColumnWidth.md)

### Release notes

- **Version 9.2**
    - Added [ListDialog.ClearColumnHeaders](http://www.mbsplugins.eu/ListDialogClearColumnHeaders.shtml), [ListDialog.GetColumnHeader](http://www.mbsplugins.eu/ListDialogGetColumnHeader.shtml) andListDialog.SetColumnHeader functions.

### Blog Entries

- [Was gibt es neues bei MBS Version 9.2](https://www.mbsplugins.de/archive/2019-07-16/Was_gibt_es_neues_bei_MBS_Vers/monkeybreadsoftware_blog_filemaker)
- [List Dialogs with headers](https://www.mbsplugins.de/archive/2019-04-29/List_Dialogs_with_headers/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 27th April 2019 , last changed 16th December 2020

  
[ListDialog.SetColumnCount](ListDialogSetColumnCount.md) - [ListDialog.SetColumnWidth](ListDialogSetColumnWidth.md)

[HTML Version](ListDialogSetColumnHeader.shtml)