FM.LayoutNames
--------------

Queries list of layout names in current file.

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

MBS( "FM.LayoutNames" { ; FileName } ) 

**MBS**( **"FM.LayoutNames";** /\* Queries list of layout names in current file. \*/  
**$FileName**) /\* Optional; The name of the database file to query.e.g. "test.fmp12" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| FileName | The name of the database file to query. | "test.fmp12" | Optional |

### Result

Returns list or error.

### Description

Queries list of layout names in current file.  
Same as calling LayoutNames(Get(FileName)).  
### Examples

Show layout names:

 Show Custom Dialog \[ "Layouts" ; MBS ( "FM.LayoutNames" ) \]  
### 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 17th July 2022

  
[FM.LayoutNameForLayoutID](FMLayoutNameForLayoutID.md) - [FM.Loop](FMLoop.md)

[HTML Version](FMLayoutNames.shtml)