Supervising the Network

6-18
Creating Menus
Using the NMENU Commands
The NMENU file being loaded must be in the current directory, or you must
have a search path to the file defined.
Example
If you are writing a menu program for Sales and you want to call up the
Accounting menu program, type
MENU 1,Sales Main Menu
ITEM Accounting Menu
LOAD ACCOUNT
SHOW
Instructs NMENU to execute a submenu defined within the same file.
Command Format
SHOW menu_number
Replace menu_number with the number of the submenu to be displayed.
Using SHOW
Include SHOW commands to identify the submenu to be displayed when an
item is selected from a menu.
SHOW commands always use menu numbers, not titles.
Example
If you have a menu with items listing categories of applications such as
“Word Processing” and “Spreadsheets,” each ITEM has the following
SHOW commands to call up the appropriate submenus for those categories:
ITEM Word Processing
SHOW 3
ITEM Spreadsheets
SHOW 5
To continue this example, if menu “3,Word Processing” is a list of available
word processing programs needed by both Sales and Accounting, and each
group has its own menus defined, the programs can “share” that screen and
the screen’s calls to execute the applications.