MENU_ITEM

This variable affects the behavior of pull-down menus.

The default action of a menu item is to return an exception value equal to the item's ID. You can change the default action of a particular item by using MENU_ITEM.

Use MENU_ITEM in the same fashion as the KEYSTROKE variable, except that the last entry on the line is the menu's ID, not the key code. For example, to cause a menu item whose ID is 200 to act the same as the Delete key, use the following:

MENU_ITEM  Edit=Delete  200

Alternately, you could cause menu item 200 to call the "notepad" sample program by using:

MENU_ITEM  Hot_Key="notepad" 200
Note: This variable cannot be read with the ACCEPT FROM ENVIRONMENT statement.