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-writing statements
 
Memory-writing statements
ABL provides the PUT-datatype statements shown in the following table.
Table 46. PUT-datatype statements
Statement
Description
PUT-BYTE
Writes an INTEGER value to the specified 1-byte location
PUT-SHORT
Writes an INTEGER value to the specified 2-byte location
PUT-UNSIGNED-SHORT
Writes an unsigned INTEGER value to the specified 2-byte location
PUT-LONG
Writes an INTEGER value to the specified 4-byte location
PUT-FLOAT
Writes a decimal value to the specified 4-byte location as a single-precision floating-point value
PUT-DOUBLE
Writes a decimal value to the specified 8-byte location as a double-precision floating-point value
PUT-STRING
Writes a character string value to the specified location, either null terminated or for a specified number of bytes
PUT-BYTES
Writes the contents of a RAW or MEMPTR variable to the specified byte location of a RAW or MEMPTR variable
For more information on these statements, see OpenEdge Development: ABL Reference.