ListDialog.SetSwapButtons
-------------------------

Whether to swap buttons.

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

MBS( "ListDialog.SetSwapButtons"; Value ) 

**MBS**( **"ListDialog.SetSwapButtons";** /\* Whether to swap buttons. \*/  
**$Value**) /\* Wether to swap buttons and have Cancel on the right side.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | Wether to swap buttons and have Cancel on the right side. | 1 |

### Result

Returns OK or error.

### Description

Whether to swap buttons.  
By default Mac shows Cancel left and OK right. On Windows it is reversed and OK is left and Cancel right.  
### See also

- [ListDialog.GetSwapButtons](ListDialogGetSwapButtons.md)

### Release notes

- **Version 15.2**
    - Added [ListDialog.SetSwapButtons](https://www.mbsplugins.eu/ListDialogSetSwapButtons.shtml) and [ListDialog.GetSwapButtons](https://www.mbsplugins.eu/ListDialogGetSwapButtons.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 15.2](https://www.mbsplugins.de/archive/2025-05-13/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.2pr3](https://www.mbsplugins.de/archive/2025-04-10/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 9th April 2025 , last changed 9th April 2025

  
[ListDialog.SetShowsFilter](ListDialogSetShowsFilter.md) - [ListDialog.SetUsesAlternatingRowBackgroundColors](ListDialogSetUsesAlternatingRowBackgroundColors.md)

[HTML Version](ListDialogSetSwapButtons.shtml)