Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets which script is called if a menu item in this menu is selected.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menu | 4.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
menu | The reference to the menu. Please create one with Menu.CreateMenu. | $menu | |
FileName | The filename of file which contains the script. | "Menus.fmp12" | |
ScriptName | The name of the script. | "MenuScript" | |
ScriptParameter | If you want a specific script parameter. Default is to leave empty and get the ID fo the menu item. |
Optional |
Returns OK or error.
This function checks for a license.
Created 18th August 2014, last changed 27th January 2016