Dialog.SetTextAlignment
-----------------------

Sets whether to change text alignment for dialog.

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

MBS( "Dialog.SetTextAlignment"; Value ) 

**MBS**( **"Dialog.SetTextAlignment";** /\* Sets whether to change text alignment for dialog. \*/  
**$Value**) /\* The new setting.  
Pass left, center, right or empty value for default.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting.   Pass left, center, right or empty value for default. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to change text alignment for dialog.  
If you show multiple lines of text, it may be easier to read with left alignment.  
### Examples

Set text to left alignment:

 Set Variable \[ $r ; Value: MBS ( "Dialog.SetTextAlignment"; "left" ) \]  
### See also

- [Dialog.GetTextAlignment](DialogGetTextAlignment.md)

### Release notes

- **Version 12.2**
    - Fixed a problem with [Dialog.SetTextAlignment](https://www.mbsplugins.eu/DialogSetTextAlignment.shtml) and FileMaker 18 causing an out of bounds exception.
- **Version 12.1**
    - Added [Dialog.SetTextAlignment](https://www.mbsplugins.eu/DialogSetTextAlignment.shtml) and [Dialog.GetTextAlignment](https://www.mbsplugins.eu/DialogGetTextAlignment.shtml) functions to use left text alignment for dialogs on macOS.

### 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 12.2pr1](https://www.mbsplugins.de/archive/2022-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 12.1](https://www.mbsplugins.de/archive/2022-03-22/New_in_MBS_FileMaker_Plugin_12/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 12.1](https://www.mbsplugins.de/archive/2022-03-15/Neues_MBS_FileMaker_Plugin_121/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 12.1 - More than 6700 Functions In One Plugin](https://www.mbsplugins.de/archive/2022-03-15/MBS_FileMaker_Plugin_121_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.1pr6](https://www.mbsplugins.de/archive/2022-03-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 2nd March 2022 , last changed 2nd March 2022

  
[Dialog.SetSuppressionButtonTitle](DialogSetSuppressionButtonTitle.md) - [Dialog.SetTimeout](DialogSetTimeout.md)

[HTML Version](DialogSetTextAlignment.shtml)