The disable menu statement disables a menu item. When a menu item is disabled, it is displayed in gray and can’t be selected by the user.
disable menu menu_name number
• menu_name – The name of the menu that will have a command disabled.
• number – An integer representing the position of the item to be disabled within the menu.
Grouped menu items that the application inherited, such as the Clipboard menu items Cut, Copy and Paste, cannot be 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 disabled and enabled, 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.