PUT-UNSIGNED-LONG statement
Writes an INTEGER or INT64 value as a 32-bit unsigned value to a MEMPTR or RAW value. This statement is analogous to the PUT-UNSIGNED-SHORT statement, except with a 32-bit value.
Syntax
destination
position
An INTEGER or INT64 value greater than 0 that indicates the byte position to writeexpression
. Ifposition
is less than 1, the AVM generates a run-time error. For a RAWdestination
, 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 MEMPTRdestination
, ifposition
is greater than the length ofdestination
or does not leave sufficient room to storeexpression
, the AVM generates a run-time error.For a RAWdestination
, 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 MEMPTRdestination
, ifposition
is greater than the length ofdestination
or does not leave sufficient room to storeexpression
, the AVM generates a run-time error.expression
Notes
- This statement supports byte-swapping only if
destination
is a MEMPTR data type. The statement will first examine the byte-order setting of the MEMPTR and then swap the bytes appropriately while putting the data into the MEMPTR memory.- For more information on accessing DLL routines from ABL, see OpenEdge Development: Programming Interfaces.
See alsoGET-UNSIGNED-LONG function, LENGTH function, LENGTH statement, RAW function, RAW statement, SET-SIZE statement
OpenEdge Release 10.2B
|