SeeView Manual

SeeView Language Elements
HP NonStop SeeView Manual526355-004
5-23
Updating Fields
To determine the field attributes for each field in a FIELDS window, use the default
attributes of the WINDOW FIELDS option in combination with the individual field
attributes specified by the field attribute productions stored in cache. Thus the field
attributes for the field Zip are underline, numeric, notab. For a complete description of
field attributes, see the WINDOW statement in Section 9, SeeView Statements and
Script Symbols.
Once the Person window is declared, the DISPLAY statement displays the parameter
values #first, #last, ... in the person WINDOW. The action of the DISPLAY statement is
a function of the current screen buffer address. To update any input-output field
window, you only need to specify the screen buffer address of that window and
execute a DISPLAY statement. The fields in the window are updated in left-to-right,
top-to-bottom order.
?PROC GetInput is called when you press Return because “CALL GetInput” is the
default production associated with the Person window. (The KEYS option also causes
F5, F6, or F7 to call ?PROC GetInput.) When the procedure is called, it calls ?PROC
GetPerson to accept the current data values into local variables #first, #last, ... from the
fields in the Person window. These values are then added to the People cache, and a
window appears on the People cache.
Updating Fields
You can update window fields four different ways:
Specify the initial value of a field by placing the literal text that is to appear in the
field after the start field delimiter. For example, the First name field in Example 5-11
contains the literal text “John” after the left square bracket start field delimiter.
Update fields with a DISPLAY statement that uses string expressions. For
example, the Last name field in Example 5-11 is updated with the statement
DISPLAY “Smith”.
Figure 5-7. SeeView Output From the Program in Example 5-10