Summary of Data Mapping Methods [ 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
Summary of Data Mapping Methods
Methods A, B, and C allow you to transfer data and subsets of data, but
do not allow data type conversion. Method A is the simplest of the six
methods: you can choose to transfer all data or no data. Methods B and
C allow you to transfer subsets of data. Method B transfers bytes
sequentially, starting at the beginning of the buffer. Method C allows
you to select specific fields of data from the buffer, not necessarily
from the beginning of the buffer or in sequence.
Methods D, E, and F all allow for data type conversion. Methods D and F
are alike except that D requires that the conversion instruction be coded
into your application. The advantage of method D is that it allows for
the run-time resolution of buffer formats and layout. Method F uses an
Application-ready Buffer to perform data type conversions. Unless your
application has special run-time requirements, it is recommended that you
use method F. Method E requires that conversion instructions be coded
into your application. It is more powerful than either D or F because it
allows you to transfer data from more than one buffer. Table 4-1
summarizes the six methods.
Table 4-1. Data Mapping Summary
A B C D E F
FEATURE 0-1 10 20-30 40-50 60-70 1000-1100
--------------------------------------------------------------------
Receive or send X X
full data buffer
Buffer length X
specified by
application
Actual buffer X
length returned
to application
Receive or send X
no data
Receive or send X X X X X X
data by field
Application may X X X X
specifies field
length
Actual field X X X X
length returned
by application
Receive or send X X X X
no data by field
Table 4-1. Data Mapping Summary (continued)
A B C D E F
FEATURE 0-1 10 20-30 40-50 60-70 1000-1100
--------------------------------------------------------------------
Field identified X X X
by name
Field identifed X X X
by number or
screen order
Application may X X X X
specify data type
conversion
Can mix field data X X X X X X
initialization from
forms and the
application
Supports data X X
transfer between
a form and multiple
application buffers
Data transfers and X X
conversions between
a form and the
application buffer
using forms file
rules
Conversion of real X X X X X
numbers according
to IEEE format
rules
Conversion of real X X X X X
numbers according
to HP 3000 format rules
-------------------------------------------------------------------------
MPE/iX 5.0 Documentation