Dialog.SetLeft
--------------

Sets the left position of the dialog.

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

MBS( "Dialog.SetLeft"; Value ) 

**MBS**( **"Dialog.SetLeft";** /\* Sets the left position of the dialog. \*/  
**$Value**) /\* The new horizontal position.e.g. 100 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new horizontal position. | 100 |

### Result

Returns OK or error.

### Description

Sets the left position of the dialog.  
Value -1 means not defined.  
This is reset by [Dialog.Reset](DialogReset.md) function.  
  
You should not need this as dialog is automatically positioned in front of FileMaker window.  
See also [Window.PositionNextDialog](WindowPositionNextDialog.md) function.  
### Examples

Set to 100 points:

 MBS ( "Dialog.SetLeft"; 100 )  
### See also

- [Dialog.GetLeft](DialogGetLeft.md)
- [Dialog.Reset](DialogReset.md)
- [Dialog.SetIcon](DialogSetIcon.md)
- [Dialog.SetMode](DialogSetMode.md)
- [Window.PositionNextDialog](WindowPositionNextDialog.md)

### Release notes

- **Version 7.3**
    - Added [Dialog.GetLeft](http://www.mbsplugins.eu/DialogGetLeft.shtml), [Dialog.GetTop](http://www.mbsplugins.eu/DialogGetTop.shtml), [Dialog.SetLeft](http://www.mbsplugins.eu/DialogSetLeft.shtml) and [Dialog.SetTop](http://www.mbsplugins.eu/DialogSetTop.shtml) functions to position dialogs.

### 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.3pr4](https://www.mbsplugins.de/archive/2017-06-29/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 12nd June 2017 , last changed 31st August 2022

  
[Dialog.SetKeyEquivalent](DialogSetKeyEquivalent.md) - [Dialog.SetMessage](DialogSetMessage.md)

[HTML Version](DialogSetLeft.shtml)