Copying between basic ABL data types and MEMPTR
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The following table lists the basic ABL data types and
how you can copy them in and out of a MEMPTR variable.
| Data type | Copying to/from MEMPTR |
|---|---|
DATE
|
To copy into a MEMPTR:
MEMPTR:
|
DECIMAL1
|
To copy into a MEMPTR, use the
PUT-DOUBLE or PUT-FLOAT statement.To copy from
a |
INTEGER1
|
To copy into a MEMPTR, use the
PUT-LONG, PUT-SHORT,
PUT-UNSIGNED-SHORT, or PUT-BYTE statements.To
copy from a |
LOGICAL1
|
To copy into a MEMPTR, use the
PUT-LONG, PUT-SHORT,
PUT-UNSIGNED-SHORT, or PUT-BYTE statements.To
copy from a |
RAW
|
To copy into a MEMPTR, assign the
RAW value directly using an assignment statement or use the
PUT-RAW statement.To copy from a |
1 The choice of exact statement or function to use depends on the data type used by
the shared library routine or the socket application with your application is
communicating.