ListDialog.SetUsesAlternatingRowBackgroundColors
------------------------------------------------

Set whether alternating row background colors should be used.

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

MBS( "ListDialog.SetUsesAlternatingRowBackgroundColors"; Enable ) 

**MBS**( **"ListDialog.SetUsesAlternatingRowBackgroundColors"** /\* Set whether alternating row background colors should be used. \*/  
**$Enable**) /\* The new setting.  
Pass 1 to enable and 0 to disable. e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Enable | The new setting.   Pass 1 to enable and 0 to disable. | 0 |

### Result

Returns OK or error.

### Description

Set whether alternating row background colors should be used.  
Returns 1 if enabled or 0 if not enabled.  
Value is only used on macOS and enabled by default.  
### See also

- [ListDialog.GetUsesAlternatingRowBackgroundColors](ListDialogGetUsesAlternatingRowBackgroundColors.md)

### Release notes

- **Version 10.4**
    - Added [ListDialog.GetUsesAlternatingRowBackgroundColors](https://www.mbsplugins.eu/ListDialogGetUsesAlternatingRowBackgroundColors.shtml) and [ListDialog.SetUsesAlternatingRowBackgroundColors](https://www.mbsplugins.eu/ListDialogSetUsesAlternatingRowBackgroundColors.shtml) functions.

### Blog Entries

- [What is new in the MBS FileMaker Plugin Version 10.4](https://www.mbsplugins.de/archive/2020-09-22/What_is_new_in_the_MBS_FileMak/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.4pr1](https://www.mbsplugins.de/archive/2020-07-28/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 24th July 2020 , last changed 27th January 2021

  
[ListDialog.SetSwapButtons](ListDialogSetSwapButtons.md) - [ListDialog.SetWidth](ListDialogSetWidth.md)

[HTML Version](ListDialogSetUsesAlternatingRowBackgroundColors.shtml)