Method XbpMenuBar():isItemEnabled() Foundation

Returns whether the specified menu item is currently enabled.

Syntax
:isItemEnabled( <nItemIndex> ) --> lEnabled
Parameters
<nItemIndex>
<nItemIndex> is a numeric value specifying the ordinal position within the menu object of the menu item whose status is returned.
Return

This method returns the value .T. (true) when the menu item is enabled, otherwise .F. (false) is returned.

Description

The :isItemEnabled() method determines whether a menu item is currently enabled. A menu item cannot be selected by the user unless it is enabled. Menu items are disabled using the :disableItem() method. Menu items can be temporarily disabled if parts of the program accessed using the menu item are not currently appropriate.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.