PUT-BYTES statement
Copies a RAW or MEMPTR variable to the specified location in another RAW or MEMPTR variable.
Syntax
destination
position
An integer value greater than 0 that indicates the byte position where you want to put the data. Ifposition
is less than 1, the AVM generates a run-time error.For a RAW variable, ifposition
is greater than the length ofdestination
, the AVM increases the length ofdestination
toposition
plus the remaining bytes needed to storeexpression
. The gap between the originaldestination
length andposition
is padded with null bytes.For a MEMPTR variable, ifposition
is greater than the length ofdestination
or does not leave sufficient room to storeexpression
, the AVM generates a run-time error. Ifdestination
is a RAW andposition
plus the length ofexpression
is greater than 32K, the AVM generates a run-time error.expression
See alsoGET-BYTES function, LENGTH function, LENGTH statement, RAW function, RAW statement, SET-SIZE statement
OpenEdge Release 10.2B
|