Menu Bar 

Menu Override Variables

 

NOMADS supplies three reserved variables that can be used to override the logic, text or item status on a menu item or group. These can be used in a program or through the Execute function. To use these variables in a program, select Perform from the drop-down list and enter the program name (with optional entry label).

_MNU_DESC$

Contains the item or group description (i.e. the text label on the menu) and must include an & (ampersand) to indicate a unique selection character. When the menu is displayed, the character following the ampersand is underlined and acts as a hot key.

Example:

   _MNU_DESC$="Sales &Invoices" displays as "Sales Invoices" (I is underlined).

_MNU_FUNCTION$

Function or event that will be triggered when the menu item is clicked.

_MNU_OPTION$

Defines the state of the menu item or group. The five possible states are Bold, Checkmark, Disabled, Suppress/Hide and Ignore (show menu item). In your code, you represent the state by the uppercase first character.

Example:

   B for Bold