FM.CurrentLayoutID
------------------

Queries ID of current running FileMaker layout.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FM](component_FM.md) | [10.2](newinversion102.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "FM.CurrentLayoutID" ) ### Parameters

none

### Result

Returns number or error.

### Description

Queries ID of current running FileMaker layout.  
See also [FM.CurrentLayoutName](FMCurrentLayoutName.md).  
### Examples

Show layout ID and name:

 Show Custom Dialog \[ "Layout" ; MBS ( "FM.CurrentLayoutID" ) &amp; " " &amp; MBS ( "[FM.CurrentLayoutName](FMCurrentLayoutName.md)" ) \]  
### See also

- [FM.CurrentLayoutName](FMCurrentLayoutName.md)
- [FM.CurrentScriptID](FMCurrentScriptID.md)

### Release notes

- **Version 10.2**
    - Added [FM.CurrentLayoutID](https://www.mbsplugins.eu/FMCurrentLayoutID.shtml), [FM.CurrentLayoutName](https://www.mbsplugins.eu/FMCurrentLayoutName.shtml), [FM.LayoutIDForLayoutName](https://www.mbsplugins.eu/FMLayoutIDForLayoutName.shtml), [FM.LayoutNameForLayoutID](https://www.mbsplugins.eu/FMLayoutNameForLayoutID.shtml) and [FM.LayoutNames](https://www.mbsplugins.eu/FMLayoutNames.shtml) matching similar functions for scripts.

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr3](https://www.mbsplugins.de/archive/2020-04-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 8th April 2020 , last changed 19th April 2020

  
[FM.CompareTables](FMCompareTables.md) - [FM.CurrentLayoutName](FMCurrentLayoutName.md)

[HTML Version](FMCurrentLayoutID.shtml)