HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
Chapter 6 269
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
The
errfilenum
contains the MPE file number of the VPLUS error message file. This file
contains the error numbers and their associated messages for both intrinsic call and edit
errors. It does not contain custom error messages, which are retrieved by VERRMSG through
the form definition. VERRMSG opens this file if
errfilenum
equals zero when VERRMSG is
called; it then sets
errfilenum
to the MPE file number of the file. The file is closed
automatically when an application terminates.
If the VPLUS error message file cannot be opened and read by this intrinsic, default
messages are generated. If
cstatus
is not equal to zero, the message is:
"VPLUS Error, COM'STATUS is nnn".
If
cstatus
is zero and
numerrs
is greater than zero, the message is:
"VPLUS Edit Error nnn".
Example
COBOL
CALL "VERRMSG" USING COMAREA, BUFFER, BUFLEN, ACTUALEN.
BASIC
225 CALL VERRMSG(C(*),M$,L,M)
FORTRAN
CALL VERRMSG(COMAREA,BUFFER,BUFLEN,ACTUALEN)
SPL/PASCAL
VERRMSG(COMAREA,BUFFER,BUFLEN,ACTUALEN);
Assume that
filerrnum
contains an MPE file error code. The calls to VERRMSG shown
above return to your application a message describing the error and the length of this
message in bytes.