HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
Chapter 6 321
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
designator may be equated to an actual designator with a :FILE command.
Discussion
This intrinsic opens the terminal as a file. If you are running your program as a session
with your terminal as the open terminal file, the terminal name should be left blank so
that the session device is opened. If you are opening a form, you should call VOPENFORMF
before using this intrinsic,
Once the terminal is opened for control by VPLUS, an application should not call system
intrinsics to communicate with the terminal. All terminal I/O must be controlled through
VPLUS intrinsics.
If you are using an HP 2640B or HP 2644 terminal and the terminal is not in block mode,
VOPENTERM asks you to press the
BLOCK MODE key; other terminals are set to block mode
automatically. The data capture devices are treated as character mode terminals.
Example
COBOL
77 T1 PIC X(8) VALUE "VTERM
01 COMAREA.
:
:
PROCEDURE DIVISION.
:
OPENTERMINAL.
CALL "VOPENTERM" USING COMAREA, T1.
This example opens the device referenced by the file equation VTERM. If no file equation
exists, the default is the logon device.
BASIC
90 Tl$-#" "
100 CALL VOPENTERM(C(*),T1$)
FORTRAN
T1=" "
VOPENTERM(COMAREA,T1)
SPL/PASCAL
MOVE T1:=" ";
VOPENTERM(COMAREA,T1);
The examples shown above open the session device with
comarea
identified as COMAREA
(C(60) for BASIC).