![]() ![]()
|
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
destinationposition
An INTEGER or INT64 value greater than 0 that indicates the byte position to writeexpression. Ifpositionis less than 1, the AVM generates a run-time error. For a RAWdestination, ifpositionis greater than the length ofdestination, the AVM increases the length ofdestinationtopositionplus the remaining bytes needed to storeexpression. The gap between the originaldestinationlength andpositionis padded with null bytes. For a MEMPTRdestination, ifpositionis greater than the length ofdestinationor does not leave sufficient room to storeexpression, the AVM generates a run-time error.For a RAWdestination, ifpositionis greater than the length ofdestination, the AVM increases the length ofdestinationtopositionplus the remaining bytes needed to storeexpression. The gap between the originaldestinationlength andpositionis padded with null bytes.For a MEMPTRdestination, ifpositionis greater than the length ofdestinationor does not leave sufficient room to storeexpression, the AVM generates a run-time error.expressionNotes
- This statement supports byte-swapping only if
destinationis 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
|
![]() ![]()
|