Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Introduction to External Program Interfaces : Using MEMPTR to reference external data : Reading and writing data : Memory-reading functions
 
Memory-reading functions
ABL provides the GET-datatype functions shown in the following table.
Table 47. GET-datatype functions
Function
Description
GET-BYTE
Returns the INTEGER value of the specified 1-byte location
GET-SHORT
Returns the INTEGER value of the specified 2-byte location
GET-UNSIGNED-SHORT
Returns the value of the specified 2-byte location, interpreted as an unsigned INTEGER
GET-UNSIGNED-LONG
Returns the unsigned 32-bit value at the specified memory location as an INT64
GET-INT64
Returns the signed 64-bit value at the specified memory location as an INT64 value. The specified memory location can have a RAW or a MEMPTR value
GET-LONG
Returns the INTEGER value of the specified 4-byte location
GET-FLOAT
Returns the DECIMAL value of the specified 4-byte location, interpreted as a single-precision floating-point value
GET-DOUBLE
Returns the DECIMAL value of the specified 8-byte location, interpreted as a double-precision floating-point value
GET-STRING
Returns the CHARACTER string value from the specified location, either null terminated or for a specified number of bytes that can include nulls
GET-BYTES
Returns, as a MEMPTR or RAW value, the specified number of bytes from the specified byte location of a RAW or MEMPTR variable
For more information on these functions, see OpenEdge Development: ABL Reference.