SeeView Manual

SeeView Language Elements
HP NonStop SeeView Manual526355-004
5-32
Direct Field Updates
Direct Field Updates
You can program dialog box fields individually so that they can be directly updated.
Example 5-15 shows a program that displays a menu of permissible field values
whenever Return is pressed with the cursor in a field.
Example 5-15. Example Program Showing Direct Field Update
Techniques (page 1 of 3)
?MENU Person { Define Person dialogue box and associated field values
{-----------
First [ ] Last [ ]
Address[ ]
City [ ] State[ ] Zip[ ]
Phone [ ]
*
<First> { Values for First name field above.
Robert
John
Jessica
*
<Last> { Values for Last name field above.
Johnson
Smith
Thompson
*
<Address> { Values for Address Field above.
18922 Forge Drive
19333 Vallco Parkway
*
<City> { Values for City Field above.
Chicago
SanFrancisco
*
<State> { Values for State Field above.
IL
CA
*
<Zip> { Values for Zip Field above.
60195
95014
*
<Phone> { Values for Phone Field above.
708-285-5555
408-285-6000
*
?SECT Main { Display Person Dialogue Box
{---------
PAGE #lastpage; CLEARW;
WINDOW Person MENU "CALL OfferList"
FIELDS (underline)
CACHE FIRST UNTIL "*" SIZE 50;
?PROC OfferList