High-Level Screen Management Intrinsic Library Reference Manual (32424-90002)

4- 5
Pascal: type
fldentry_rec = record
fldid : packed array [1..32] of char;
end;
datadescrpt_rec = record
descrpttype : integer;
buflen : integer;
rtnbuflen : integer;
entrycnt : integer;
fldentry : array [1..5] of fldentry_rec;
end;
var
datadescrpt : datadescrpt_rec;
Data Transfer Method D
This data transfer method lets you move data to and from the fields
referenced in the form, but the application buffer does not have to match
the screen layout. All data must come from one buffer. This method also
allows your application to specify data type conversions. It has all the
power and and usage of method F (that uses an ARB), but has the advantage
of letting your application resolve data buffer formats and layout at
run-time. Use this transfer method when the application data buffer
does
not correspond to the form buffer and your application has special
run-time requirements.
You indicate this kind of data transfer by assigning the value 40 or 50
to the subparameter
descrpttype
. Assign the value 40 if you want to
identify fields by number. Assign the value 50 if you want to identify
fields by name.
The subparameters you must supply to use this data mapping method and
their values are:
descrpttype
Supply the value 40 to identify fields by
number.
Supply the value 50 to identify fields by name.
buflen
A four-byte integer. This subparameter is not
used by Hi-Li for this method, but must be
passed anyway.
rtnbuflen
A four-byte integer. This subparameter is not
used by Hi-Li for this method, but must be
passed anyway.
entrycnt
Supply a four-byte integer to indicate the
number of active field entries in the table.
fldentry
Identifies the table in your application.
fldloc
Supply a four-byte integer to indicate the byte
offset of the field with respect to the
databuf
parameter. The offset is 1 relative. If you
supply a zero, the offset of the referenced
field in the form is used by default. You
cannot supply a negative offset.
fldlen
Supply a four-byte integer to indicate the