Supervising the Network
6-12
Creating Menus
Using the NMENU Commands
Using MENU
The first menu defined in the source file is always the first menu displayed,
no matter what number is assigned to it. Subsequent menus are referenced
by their numbers, no matter what order they appear in the .SRC file.
For example, if you have defined three menus and assigned them numbers 1,
2, and 5, and menu 5 is the first menu in the source file, menu 5 is displayed
first. Menus 1 and 2 are referenced in control commands and displayed
depending upon user selection.
Example
To define a main menu for a program to be used by accountants in your
company, type a line similar to the following:
MENU 1,Accounting Main Menu
Since this is the first menu you want to appear, place it at the beginning of
your menu program.
ITEM
Indicates an option in the menu.
Command Format
ITEM item_name {[option...]}
Replace item_name with the list item you want to appear in the menu. The
maximum length for an item is 40 characters.
Replace option with one or more of the options shown in Table 22. Separate
multiple options with a space. Enclose all options for a single ITEM within a
single set of braces.
These options provide you with better control of menu execution. You
determine how memory is used, which directory the user remains in, and
what information is presented to those users.