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

366 Chapter6
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
to the batch record specified by
recnum
.
Modify Mode When data is modified, an existing batch file record is rewritten. The
calling program must set
recnum
to the record number of this record.
To mark a batch record as deleted, the
deleteflag
must be set to TRUE (all ones) by an
application. Then a call to VWRITEBATCH sets a corresponding flag in the batch record to
mark the record as deleted. Since a deleted record still exists in the batch file, it can be
viewed through FCOPY or a user-written intrinsic.
In ENTRY, a function key pressed by the user not only determines which record is to be
viewed, but also specifies which record is to be deleted.
Example COBOL
CALL "VWRITEBATCH" USING COMAREA.
BASIC
165 CALL VWRITEBATCH(C(*))
FORTRAN
CALL VWRITEBATCH(COMAREA)
SPL/PASCAL
VWRITEBATCH(COMAREA);
The calls shown above write the contents of the data buffer to the batch record identified
by
recnum
. Assume the following data is in the data buffer and that it was entered on form
ORDENT. (Note that the data entered on separate fields of a form is concatenated in the data
buffer, with no separators.)
Assume the
comarea
is set as follows:
recnum
= 5
cfname
= ORDENT
dbuflen
= 37
1 (bytes)
37
A10035-9
field
1
2
34
5
BICYCLEPUMP 0010.95 ∆∆5 0054.75