MenuItem.CreateSeparator
------------------------

Creates a new separator menu item.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menu](component_Menu.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "MenuItem.CreateSeparator" ) ### Parameters

none

### Result

Returns menu item reference or error.

### Description

Creates a new separator menu item.  
You later need to release it with [MenuItem.Release](MenuItemRelease.md).  
Menu item reference numbers are starting at 11000 and counting up for each new menu item.  
### Examples

Add a separator to a menu:

 Set Variable \[$item ; Value:MBS ("MenuItem.CreateSeparator")\]  
Set Variable \[$r ; Value:MBS ("[Menu.AddItem](MenuAddItem.md)"; $menu ; $item )\]  
### See also

- [MenuItem.SetOnStateImage](MenuItemSetOnStateImage.md)
- [MenuItem.SetRequireOption](MenuItemSetRequireOption.md)
- [MenuItem.SetRequireShift](MenuItemSetRequireShift.md)
- [MenuItem.SetSelectable](MenuItemSetSelectable.md)
- [MenuItem.SetState](MenuItemSetState.md)
- [MenuItem.SetStrikeOut](MenuItemSetStrikeOut.md)
- [MenuItem.SetSubMenu](MenuItemSetSubMenu.md)
- [MenuItem.SetTag](MenuItemSetTag.md)
- [MenuItem.SetTitle](MenuItemSetTitle.md)
- [MenuItem.SetUnderline](MenuItemSetUnderline.md)

### Example Databases

- [Mac and iOS/Data Detector](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Data%20Detector.shtml#2ScriptAnchor_)
- [Menu/Popup Menu](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Menu/Popup%20Menu.shtml#2ScriptAnchor_)

### FileMaker Magazin

- [Ausgabe 2/2021, Seite 28](https://filemaker-magazin.de/neuigkeit/4132-Appetithappen-FMM_202102)

This function checks for a license.

Created 18th August 2014 , last changed 15th April 2015

  
[MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) - [MenuItem.GetAlternate](MenuItemGetAlternate.md)

[HTML Version](MenuItemCreateSeparator.shtml)