ListDialog.SetColumnWidth
-------------------------

Sets column width to use.

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

MBS( "ListDialog.SetColumnWidth"; Index; Width ) 

**MBS**( **"ListDialog.SetColumnWidth";** /\* Sets column width to use. \*/  
**$Index**; /\* The index of the column starting with zero for the first one.e.g. 0 \*/   
**$Width**) /\* The new width to use.e.g. 50 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | The index of the column starting with zero for the first one. | 0 |
| Width | The new width to use. | 50 |

### Result

Returns OK or error.

### Description

Sets column width to use.  
For multi columns, you may specify custom column widths.  
### Examples

Set column widths for first two columns:

 Set Variable \[ $r ; Value: MBS ("ListDialog.SetColumnWidth"; 0; 50) \]   
Set Variable \[ $r ; Value: MBS ("ListDialog.SetColumnWidth"; 1; 80) \]  
### See also

- [ListDialog.GetColumnHeader](ListDialogGetColumnHeader.md)
- [ListDialog.GetColumnWidth](ListDialogGetColumnWidth.md)
- [ListDialog.SetColumnCount](ListDialogSetColumnCount.md)
- [ListDialog.SetColumnHeader](ListDialogSetColumnHeader.md)

### Release notes

- **Version 11.2**
    - Added [ListDialog.SetColumnWidth](https://www.mbsplugins.eu/ListDialogSetColumnWidth.shtml) and [ListDialog.GetColumnWidth](https://www.mbsplugins.eu/ListDialogGetColumnWidth.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 11.2](https://www.mbsplugins.de/archive/2021-05-26/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.2pr6](https://www.mbsplugins.de/archive/2021-05-04/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 3th May 2021 , last changed 3th May 2021

  
[ListDialog.SetColumnHeader](ListDialogSetColumnHeader.md) - [ListDialog.SetFilter](ListDialogSetFilter.md)

[HTML Version](ListDialogSetColumnWidth.shtml)