Menu.SetTag
-----------

Sets the tag of the menu.

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

MBS( "Menu.SetTag"; menu; Value ) 

**MBS**( **"Menu.SetTag";** /\* Sets the tag of the menu. \*/  
**$menu**; /\* The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). \*/   
**$Value**) /\* The new tag value.e.g. Get(RecordID) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| menu | The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). | $menu |
| Value | The new tag value. | Get(RecordID) |

### Result

Returns OK or error.

### Description

Sets the tag of the menu.  
See also [Menu.GetTag](MenuGetTag.md).  
With the tag, we allow you to associate a text with the menu item, for example a record ID.  
### See also

- [Menu.CreateMenu](MenuCreateMenu.md)
- [Menu.GetTag](MenuGetTag.md)
- [Menu.SetURL](MenuSetURL.md)
- [MenuItem.GetTag](MenuItemGetTag.md)

This function is free to use.

Created 18th August 2014 , last changed 31st August 2014

  
[Menu.SetShowsStateColumn](MenuSetShowsStateColumn.md) - [Menu.SetTitle](MenuSetTitle.md)

[HTML Version](MenuSetTag.shtml)