enable menu

Examples


The enable menu statement allows a previously disabled menu item to be selected by a user.

Syntax

enable menu menu_name number

Parameters

menu_name – The name of the menu that will have an item enabled.

number – An integer representing the position of the item to be enabled within the menu.

Comments

Grouped menu items that the application inherited, such as the Clipboard menu items Cut, Copy and Paste, cannot be enabled or disabled. In addition, these inherited items should not be counted when determining the position of a menu item for use in the number parameter. For more information about menu items that can be enabled and disabled, refer to Form-based Menus.

When the form or window is restarted, all disabled menu items are reenabled, unless they are again disabled by the window pre script, which runs each time the form or window is restarted.


Documentation Feedback