HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)

318 Chapter6
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
VOPENFORMF
Opens forms file for access.
Syntax
VOPENFORMF {
comarea,formfile
}
Parameters
comarea
The
comarea
name must be unique for each open forms file. If not already
set, the following
comarea
items must be set before calling VOPENFORMF:
cstatus
Set to zero.
language
Set to the code identifying the programming language of
the calling program.
comarealen
Set to total number of two-byte words in
comarea
.
usrbuflen
BASIC programs only; set to number of two-byte words
needed for
comarea
extension.
labeloption
Set to zero or one.
formstoresize
Set to minus one, zero, or one through 255 to indicate
the number of forms allowed in the form storage directory.
VOPENFORMF sets the following
comarea
items:
cstatus
Set to nonzero value if call unsuccessful.
lastkey
Set to zero.
numerrs
Set to zero.
recnum
Set to zero.
dbuflen
Set to zero.
cmode
Set to zero (collect mode).
repeatapp
Set to zero (no repeat/append).
freezapp
Set to zero (clear current form).
printfilnum
Set to zero.
deleteflag
Set to FALSE (all zeros) (used for batch file intrinsics).
cfname
Set to blank.
nfname
Set to name of head form.
cstatus
Set to nonzero value if call unsuccessful.
filerrnum
Set to file error code if MPE file error.
windowenh
Set to enhancement code defined in forms file.
If the data capture devices are used:
errorlight
Set to default or user specified value.