HP 3000 Manuals

Data Type Conversion [ High-Level Screen Management Intrinsic Library (Hi-Li) Reference Manual ] MPE/iX 5.0 Documentation


High-Level Screen Management Intrinsic Library (Hi-Li) Reference Manual

Data Type Conversion 

If you plan on using data transfer method F, that uses an ARB as the
means for data type conversion, you must create an ARB. It presents data
as an application expects to use it.  You create an ARB in FORMSPEC/V by
supplying information on menus.  This eliminates the need for you to code
conversion instructions in your application.  Refer to the HP Data Entry 
and Forms Management System (VPLUS/V) Reference Manual (Part No.
32209-90001) for complete instructions on creating an ARB.

The DATADESCRPT Parameter 

The datadescrpt parameter is a compound parameter used in the HPDREAD,
HPDSEND, and HPDPRINTFORM intrinsics to tell Hi-Li how you want to
transfer data between your application and a form.  It is made up of ten
subparameters.  The first four subparameters supply header information;
the last six provide table information.

You supply values for some or all of these subparameters, depending on
the mapping method you are using.  In some cases, a subparameter is not
used by a particular method, but it must be passed.  The particular
values that you can supply for a particular mapping method are discussed
under that method.

These are the ten datadescrpt subparameters:

descrpttype               A four-byte integer that tells Hi-Li the data
                          mapping method you want to use.

buflen                    A four-byte integer that indicates the number
                          of bytes of buffer data you want to move.

rtnbuflen                 A four-byte integer that indicates the number
                          of bytes of buffer data actually moved.

entrycnt                  A four-byte integer that indicates the number
                          of active field entries in the table.

fldentry                  Identifies a table you create in your
                          application.

fldid                     A four-byte integer or 32-byte character array
                          which identifies a field.

fldloc                    A four-byte integer that gives the field
                          location by indicating the offset of the field
                          within the buffer.

fldlen                    A four-byte integer that indicates the number
                          of bytes of field data you want to move.

rtnfldlen                 A four-byte integer that indicates the number
                          of bytes of field data actually moved.

typcnvcode                A four-byte integer that tells Hi-Li the type
                          of data conversion you want performed.



MPE/iX 5.0 Documentation