DeleteMenuItem command

The DeleteMenu command deletes an item with the specified menu item ID or multiple items from the specified IDs range. If the menu item opens submenu, this command destroys submenu and frees the memory used by the submenu.

 

Syntax

Integer=MenuItemID

PluginSet("PlugIn","Integer")

PluginRun("PlugIn","DeleteMenuItem")

or

String$='IDsRange1, IDsRange2, ..., IDsRangeN'

PluginSet("PlugIn","String$")

PluginRun("PlugIn","DeleteMenuItem")

Parameters

MenuItemID

[in] Associated with menu item unique identifier or submenu handle if menu item opens submenu. See CreateMenuItem command.

IDsRange

[in] Used to perform quick operation on multiple items. IDs range is a string value that could be represented in this way: 'range_start % range_end' where range_start and range_end are menu item identifiers. IDs range can be degenerated - simply represented only by one identifier (submenu handle or item identifier): 'range_start'.