| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PopupClass > PopupClass Methods >====== SetItemEnable (set item status) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[setitemcheck set toggle item status .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setlevel set menu item level .htm|{{btn_next_n.gif|Next page}}]] | | || **SetItemEnable( **//name //**)** {{blk2blue.jpg|blk2blue.jpg}} | **SetItemEnable** | Sets the enabled/disabled status of a menu item. | | //name// | A string constant, variable, EQUATE, or expression containing the menu item name. The AddItem, AddItemMimic, or AddMenu methods set the item name//.// | | //status// | A Boolean constant, variable, EQUATE, or expression containing the status to which to set the item. A //status //value of one (1) indicates an enabled item; zero (0) indicates a disabled item. | The **SetItemEnable **method sets the enabled/disabled status of a menu item. The GetItemEnabled method returns the enabled/disabled status of a menu item. **Implementation: **The //name //parameter accepts up to 1024 characters. **Example:** ** 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** ** END** **See Also: **[[additem add menu item .htm|AddItem]], [[additemmimic tie menu item to a button .htm|AddItemMimic]], [[addmenu add a menu .htm|AddMenu]], [[getitemenabled return item status .htm|GetItemEnabled]]