GetItemEnabled (return item status)

Top  Previous  Next


GetItemEnabled( name )


Returns the enabled/disabled status of a menu item.


A string constant, variable, EQUATE, or expression containing the menu item name. The AddItem, AddItemMimic, or AddMenu methods set the item name.

The GetItemEnabled method returns one (1) if the item is enabled and zero (0) if the item is disabled. The SetItemEnable method sets the enabled/disabled state of a menu item.


The name parameter accepts up to 1024 characters.

Return Data Type:     BYTE


 IF PopupMgr.GetItemEnabled('Save')     !if item is enabled

  PopupMgr.SetItemEnable('Save',False)  ! disable it

 ELSE                                   !if item is disabled

  PopupMgr.SetItemEnable('Save',True)   ! enable it


See Also:     AddItem, AddItemMimic, AddMenu, SetItemEnable