Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Sets the URL to query when menuitem is used.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Menu 6.5 Yes Yes No No No
MBS( "MenuItem.SetURL"; item; URL )   More


Parameter Description Example value
item The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. $item
URL The URL to trigger.


Returns OK or error.


Sets the URL to query when menuitem 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.


Create menu to open email application:

Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "Send Email to Support")]
Set Variable [$r; Value:MBS("MenuItem.SetURL"; $item; "mailto:support@monkeybreadsoftware.test")]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]

See also

Blog Entries

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

MenuItem.SetToolTip   -   MenuItem.SetUnderline

Feedback: Report problem or ask question.

MBS Xojo Plugins