HP RPG/XL Programmer's Guide (30318-90001)

4- 24
operation for the terminal file. VPLUS returns an event code
in the first field of the terminal input record. You use this
event code to identify the type of input received. Here are
some of the codes that may be returned:
Event code: Description: \00\The user entered data and
pressed ENTER .
01-08 The user pressed F1 through F8 .
09 An EDITS action was performed and VPLUS
returned the number of fields that failed
the VPLUS edits.
For example, if you performed a GETDTA action, you follow it
with READ TERMINAL operation.
The VPLUS sections in this chapter explain how to perform the VPLUS
procedures introduced above. They do not cover all of the VPLUS actions
or the ways to use VPLUS, but they should give you a good start. See the
HP RPG Reference Manual
for rules on using the RPG interface to VPLUS.
Many of the following VPLUS sections in this manual use examples taken
from the program listed in the section "A Sample Program Using VPLUS."
You may find it helpful to refer to this program to get a clear idea of
how the examples can be used together to form a complete program.
Creating a VPLUS Form. Before you can use VPLUS in a program, you must
create a screen form using the VPLUS facility, FORMSPEC. Although this
section shows a typical screen created by FORMSPEC, it does not explain
how to create it. For instructions on how to use FORMSPEC, see the
Data
Entry and Forms Management System VPLUS/3000
manual.
Figure 4-13 shows what a FORMSPEC screen form looks like. Titles,
captions and headings are capitalized. Fields, used for entering data,
are enclosed in brackets.
Figure 4-13. Creating a VPLUS Form Using FORMSPEC