For each item on the menu, you must define a link to the procedure which performs the required actions. Set these up by inserting subsidiary procedures of the menu using the Procedure Link Editing dialog.
The Option number must correspond to the field number of the option on the menu map and should correspond to the option number appearing on the menu, if one is used. The optional Next option facility allows you to select the option which is highlighted when the current action is completed.
If you specify a Condition to enter, this will be evaluated when the menu is displayed. If the condition is not satisfied, the user will be unable to select it. By default, options that are not available are displayed greyed out (disabled).
If you do not want an option to appear greyed out when the condition to enter is not satisfied, you can adjust the standard variable no_grey. The condition to enter is evaluated in two places:
The variable no_grey will be set to TRUE for the first evaluation of the condition, to prevent greyed out display if the condition is not met. For the second evaluation, no_grey will be set to FALSE, and so the condition to enter is evaluated in the normal way.
no_grey OR old condition
Usually when a menu is first displayed, the first option on the menu is the default option and so is highlighted. The option that is highlighted on return from a menu option (assuming the menu procedure is repeated) is set up using Next option in the Link Edit screen. You may, however, set up a different default option when a menu is first displayed.
The system variable next_option can be set up to indicate the default option. Set this up before entering the menu procedure.
To select a default option for a menu: