Dialog.GetButton
----------------

Queries button text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Dialog](component_Dialog.md) | [7.1](newinversion71.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Dialog.GetButton"; Index ) 

**MBS**( **"Dialog.GetButton";** /\* Queries button text. \*/  
**$Index**) /\* The index of the button.  
From 0 to 9.e.g. 4 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | The index of the button.   From 0 to 9. | 4 |

### Result

Returns text or error.

### Description

Queries button text.  
### See also

- [Dialog.GetButtonPressed](DialogGetButtonPressed.md)
- [Dialog.GetButtons](DialogGetButtons.md)
- [Dialog.GetIcon](DialogGetIcon.md)
- [Dialog.Run](DialogRun.md)
- [Dialog.RunSheet](DialogRunSheet.md)
- [Dialog.SetButton](DialogSetButton.md)
- [Dialog.SetButtons](DialogSetButtons.md)

### Release notes

- **Version 7.2**
    - Added [Dialog.GetButtonPressed](http://www.mbsplugins.eu/DialogGetButtonPressed.shtml) function.
- **Version 7.1**
    - Added [Dialog.GetButton](http://www.mbsplugins.eu/DialogGetButton.shtml) and [Dialog.SetButton](http://www.mbsplugins.eu/DialogSetButton.shtml) to have up to 10 buttons on a dialog.

### Blog Entries

- [MBS Plugin Advent calendar: 17 - Dialog](https://www.mbsplugins.de/archive/2023-12-17/MBS_Plugin_Advent_calendar_17_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.1pr3](https://www.mbsplugins.de/archive/2017-02-22/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 14th February 2017 , last changed 19th April 2022

  
[Dialog.GetAlternateButton](DialogGetAlternateButton.md) - [Dialog.GetButtonPressed](DialogGetButtonPressed.md)

[HTML Version](DialogGetButton.shtml)