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

Appendix I 621
BIT MAP CONVERSION
Syntax
I BIT MAP CONVERSION
A procedure called BITMAPCNV is provided to help decode and set bits in programming
languages which do not have bit operations. It is particularly helpful in COBOL with the bit
map returned by VGETFIELDINFO.
Syntax
BITMAPCNV {
bitmap,bytemap,numbytes,function,cnverr
}
Parameters
bitmap
Source bit array containing bits to be converted to a byte array, or
destination bit array for conversion from a byte array.
bytemap
Destination or source byte array. (For COBOL use BYTEMAP)
mbytes
Two-byte integer set to number of bytes to be converted from or to.
function
Two-byte integer set to conversion type;
1 = bit to byte,
2 = byte to bit
cnverr
Two-byte integer variable containing conversion error return;
0 = conversion successful,
-1 = conversion failed,
-2 = invalid input parameter