DeleteMenu (remove a popup submenu)

Top  Previous  Next

 

DeleteMenu( name )

DeleteMenu

Deletes a popup submenu item, and all associated child items.

name

A string constant, variable, EQUATE, or expression containing the submenu item name. The AddMenu method set the item name.

The DeleteMenu method deletes a popup submenu item and any associated child items.

Implementation:

The name parameter accepts up to 1024 characters.

Example:

PopupMgr.AddItem('&Insert','Insert')         !Insert item

PopupMgr.AddItem('&Change','Change')         !Change item

PopupMgr.AddItem('&Delete','Delete')         !Delete item

PopupMgr.AddItem('&Select','Select')         !Select item

IF No_Records_Found

 PopupMgr.DeleteItem('Change')            !remove change item

 PopupMgr.DeleteItem('Delete')            !remove delete item

 PopupMgr.DeleteItem('Select')            !remove select item

PopupMgr.DeleteMenu('Format List')       !remove select sub menu

END

See Also:     AddItem, AddItemMimic, AddMenu