MenuItem.GetPath
----------------

Queries path of a menu item in a menu hierarchy.

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

MBS( "MenuItem.GetPath"; Item; Mode { ; Delimiter } ) 

**MBS**( **"MenuItem.GetPath";** /\* Queries path of a menu item in a menu hierarchy. \*/  
**$Item**; /\* The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). \*/   
**$Mode**; /\* Can be Title, Tag or ID and defines which value to use.e.g. "Title" \*/   
**$Delimiter**) /\* Optional; Which delimiter to use. Default is newline.e.g. "/" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Item | The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). | $item |  |
| Mode | Can be Title, Tag or ID and defines which value to use. | "Title" |  |
| Delimiter | Which delimiter to use. Default is newline. | "/" | Optional |

### Result

Returns text or error.

### Description

Queries path of a menu item in a menu hierarchy.  
  
### See also

- [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md)
- [MenuItem.CreateSeparator](MenuItemCreateSeparator.md)
- [MenuItem.GetBold](MenuItemGetBold.md)
- [MenuItem.GetImage](MenuItemGetImage.md)
- [MenuItem.GetState](MenuItemGetState.md)
- [MenuItem.GetTag](MenuItemGetTag.md)
- [MenuItem.GetTitle](MenuItemGetTitle.md)
- [MenuItem.GetURL](MenuItemGetURL.md)
- [MenuItem.SetState](MenuItemSetState.md)
- [MenuItem.SetTag](MenuItemSetTag.md)

This function checks for a license.

Created 8th July 2015 , last changed 1st August 2015

  
[MenuItem.GetParentMenu](MenuItemGetParentMenu.md) - [MenuItem.GetRequireCommand](MenuItemGetRequireCommand.md)

[HTML Version](MenuItemGetPath.shtml)