RemoveItem

This command will remove a button from the menu strip by referencing its index. Removing and item by its name would be more self-documenting and is preferred but this command is useful when iterating through a loop.

Group: Menu Strip Extensions

Syntax: MenuStrip.RemoveItem(nIndex)

nIndex             (Long) is the index value of the requested button

Example:

MenuStrip.RemoveItem(4) ' the Exit button
 

Supported Versions:  RFgen 5.0 and newer.