Sets the specified number of bytes from the MEMPTR variable starting at startIndex in a BytesMessage.
Syntax
PROCEDURE setMemptr.
DEFINE INPUT PARAMETER memptrVar AS MEMPTR.
DEFINE INPUT PARAMETER startIndex AS INTEGER.
DEFINE INPUT PARAMETER numBytes AS INTEGER.
Applies to
Message objects
Notes
The first byte is 1.
setMemptr procedure implicitly calls clearBodyprocedure before setting the data and resets after setting the data. Therefore, it can be used whether the message is in a read-only mode or a write-only mode prior to the call.
The call makes a copy of the data. Thus, the memptrVar variable is not modified by the ABL–JMS implementation and can be modified by the OpenEdge application after the call without corrupting the message.