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

4- 34
example assumes that the message, SELECT MODE WITH FUNCTION KEY, is
placed in the first element of the array, MSG. It also assumes that the
message window fields, MSGLEN and ENHANC, are already initialized.
Figure 4-19. Displaying Messages in the VPLUS Message Window
Comments
1 This line sets the index of the MSG array tp 1.
Columns 43-58 contain the name of the index field, M.
2 This line places the VPLUS action, SHOMSG, into the first field
of the message window record. SHOWMSG displays messages in the
VPLUS message window.
3 This line performs exception output for the record associated
with EXCPT Group V$MESG. This is the message window record.
4 This line begins the message window record description.
5 This line specifies that the window message is in the array,
MSG. Since the value of M is one, the first element of the array
is displayed in the message window.
Specifying the VPLUS Error Message Display Interval. RPG run-time error
messages related to VPLUS files (except edit errors or messages you
display in the message window) are displayed for 3 seconds in the message
window.
You can change the time interval, if necessary, by using column 51 of the
File Description Specification.