EXPLANATION OF THE EXAMPLE 2:

Lines

Explanation

3-42

The layout segment that defines the menu display is almost identical to the menu defined in Example 1.  The only difference is the execution of a trigger when the DELETE item is selected.  See Example 1 for details.

26

The PERFORM statement specifies the PM trigger that is executed when the DELETE item is selected.  After the trigger has completed execution, control is returned to the MENU statement.  Another item may be selected or select EXIT to terminate the MENU statement/command.

46-59

The layout segment defines the confirmation menu for the delete operation.  This layout segment illustrates the variety of menus which can be designed.  See Figure 8.

48

The SELECTION statement indicates that the area to highlight the keyword is a fixed length of 3 characters.  The rendition highlighting the keyword is reverse video.

49

The BORDER statement specifies that the menu has a border without a title.

54, 57

The item description does not have to be specified.  Depending on the complexity of the menu, either the item description or keyword description can be an empty string.  If an empty keyword description is desired, the KEYWORD statement must be specified.  Remember, if the KEYWORD statement is not specified, an automatic numeric keyword will be supplied.

Example 2    Example 3