menu.deleteSubMenu

Syntax menu.deleteSubMenu (adrMenubar, menuName)

Params adrMenubar is the address of a menubar object in Frontier.root.

menuName is the name of a menu contained within the menu bar.

Action Deletes a menu from the menubar object.

Returns True if the menu is found and deleted, false otherwise.

Examples menu.deleteSubMenu (@system.misc.menubar, "Hello")

   » true // deletes a menu named Hello from your Custom menu

Notes If menuName is found as a single item rather than a submenu, it will still be deleted.

This command is not undoable

See Also menu.addSubMenu

menu.deleteMenuCommand

Discuss