Menu.SetURL
-----------

Sets the URL to query when menu is used.

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

MBS( "Menu.SetURL"; menu; URL ) 

**MBS**( **"Menu.SetURL";** /\* Sets the URL to query when menu is used. \*/  
**$menu**; /\* The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). \*/   
**$URL**) /\* The URL to trigger. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| menu | The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). | $menu |
| URL | The URL to trigger. |  |

### Result

Returns OK or error.

### Description

Sets the URL to query when menu is used.  
$$ID$$ in the URL is replaced with menu ID.  
Queries http/ftp/sftp URLs with CURL, other URLs passed to OS to open.  
### See also

- [Menu.CreateMenu](MenuCreateMenu.md)
- [Menu.GetURL](MenuGetURL.md)
- [Menu.SetTag](MenuSetTag.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.5pr3](https://www.mbsplugins.de/archive/2016-10-18/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 11st October 2016 , last changed 11st October 2016

  
[Menu.SetTitle](MenuSetTitle.md) - [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md)

[HTML Version](MenuSetURL.shtml)