RemoveMenu Method (AMenu)

Version 6

Deletes and removes the specified menu of given name or index.

 

Syntax

Object.RemoveMenu ( vNameOrIndex )

The RemoveMenu method syntax has the following parts:

 

Name

Type

Description

Object

AMenu

AMenu object - menu parent

vNameOrIndex

Val Variant

Menu's name or index to be removed

Comments

This method does not apply to the top-level menu, of type amenuTypeBar.

If menu name or index is invalid, then it will return False.

Example

The following statement removes a menu :

 

mnuParent.RemoveMenu(sMenu)

Applies to

AMenu

See Also

Move, InsertMenu