SeeView Manual
HP NonStop SeeView Manual—526355-004
8-1
8 SeeView Directives
This section describes the SeeView interpreter directives ?MENU, ?PROCEDURE,
?SECTION, and ?SEEVIEW and explains how each functions in a SeeView script.
PROC is an abbreviation for PROCEDURE, and SECT is an abbreviation for
SECTION.
When a keyword is prefixed by a question mark in the first character position of a line
in a SeeView program, the combination of keyword and question mark is called an
interpreter directive. Interpreter directives provide structural information to the SeeView
program about the text following them.
MENU
The ?MENU directive declares a menu taskid name and the contents of the cache
memory associated with that name. Each line of text following the directive is stored in
the cache defined by taskid.
The WINDOW statement displays the cache contents in windows or menus. When you
declare a window as a menu:
•
Each line of cache containing the production symbol (<==) represents a menu item
that you can invoke by pressing Return. For example:
Viewsys <== run viewsys
•
The prompt production symbol (<==?) represents a menu item that you can invoke
and have data passed through an input field defined on the left side of the
production symbol. For example:
Enter \system: [ ] <==? #system := #menuinput
To invoke a production, place the cursor on that production’s line in a menu and press
Return.
The text on the left side of the production symbol is the text that you see in the menu
window. On the right side of the production is a set of statements that the SeeView
interpreter executes.
The TASK statement syntax portion of the ?MENU directive enables you to specify
menu options. These options include TASK statement options. Common TASK
statement options that you might want to use with the ?MENU directive include the
CACHEPAGES and SORTED. For detailed descriptions, see the TASK statement in
Section 9, SeeView Statements and Script Symbols.
Example 8-1 on page 8-2 shows how to use the MENU directive.
?MENU taskid [ TASK statement syntax ]