DisableMenuItem
Mon 01 January 2018Syntax
DisableMenuItem(BARNAME.menubar_name, ITEMNAME.menuitem_name)
Description
Use the DisableMenuItem function to disable (make unavailable) the specified menu item. To apply this function to a pop-up menu, use the PrePopup Event of the field with which the pop-up menu is associated.
If youâre using this function with a pop-up menu associated with a page (not a field), the earliest event you can use is the PrePopup event for the first "real" field on the page (that is, the first field listed in the Order view of the page in Application Designer.)
Parameters
Field or Control |
Definition |
---|---|
menubar_name |
Name of the menu bar that owns the menu item, or, in the case of pop-up menus, the name of the pop-up menu that owns the menu item. |
menuitem_name |
Name of the menu item. |
Returns
None.