MENU DELETE statement

Purpose

Delete a menu item from an existing menu.

Syntax

MENU DELETE hMenu, [BYCMD] pos&

Remarks

If the menu item is a popup child menu, the menu is destroyed and its memory is released.

hMenu 

Double-word or Long-integer variable containing the handle of the menu containing the item you are deleting.

pos&

Position of the item within the menu. If BYCMD is specified, pos& refers to the unique menu identifier. Otherwise, pos& is the position of the menu item, where pos& = 1 for the first position, pos& = 2 for the second, and so on.

See also

Dynamic Dialog Tools, Menus, MENU ADD POPUP, MENU ADD STRING, MENU ATTACH, MENU DRAW BAR, MENU GET STATE, MENU GET TEXT, MENU NEW BAR, MENU NEW POPUP, MENU SET STATE, MENU SET TEXT