Test for menu installed

Command group Flag affected Reversible Execute on client Platform(s)
Menus YES NO NO All


Test for menu installed {menu-instance-name}


This command tests whether the specified menu instance is installed on the menu bar. The flag is set if the menu instance is on the menu bar and cleared if it is not, regardless of whether the menu instance is enabled or grayed out. The command does not apply to hierarchical and popup menus.


; Install the menu mMyMenu if it is not already
; installed
Test for menu installed {mMyMenu}
If flag false
  Install menu mMyMenu
End If