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

264 Chapter6
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
VCHANGEFIELD has no effect on the security or color enhancements; an error is returned if
the codes for these enhancements (1-8 or S) are specified. VCHANGEFIELD does not alter the
field error enhancement nor is this enhancement code returned when the enhancement
attribute is toggled (rather the current "normal" enhancement is altered and returned if
toggling).
Example
COBOL
CALL "VCHANGEFIELD" USING COMAREA,SPECBUF,ENTRIES.
BASIC
CALL VCHANGEFIELD(C(*),Bl,EN)
FORTRAN
CALL VCHANGEFIELD(COMAREA,SPECBUF,ENTRIES);
SPL/PASCAL
VCHANGEFIELD(COMAREA,SPECBUF,ENTRIES);
Table 6-8. Specifications Buffer
Data Type Position Description
Integer
(Two-byte)
1 positive field number or negative screen order number
Integer
(Two-byte)
2 Change type
1 = toggle enhancement
2 = toggle field type
3 = toggle data type
4 = change enhancement
5 = change field type
6 = change data type
Character array
(4-byte)
3-4 Change Specifications
Type 1, 4 values = H, I, B, U, NONE
Type 2, 5 values = 0, D, P, R
Type 3, 6 values = CHAR, DIG, IMP
n
, NUM [
n
], DMY, MDY, YMD