setMemptr procedure
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Sets the specified number of bytes from the MEMPTR variable starting at
startIndex in a BytesMessage.
Syntax
|
Applies to
Message objects
Notes
- The first byte is 1.
- setMemptr procedure implicitly calls clearBody procedure 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.
See also
createBytesMessage procedure, setMemptr procedure, writeBoolean procedure, writeByte procedure, writeBytesFromRaw procedure, writeChar procedure, writeDate procedure, writeDateTime procedure, writeDateTime-TZ procedure, writeDouble procedure, writeFloat procedure, writeInt procedure, writeLong procedure, writeLongString procedure, writeShort procedure, writeString procedure, getContentType, getBytesCount function, endOfStream function, moveToNext procedure, readBytesToRaw procedure, readChar function, readDate function, readDateTime function, readDateTime-TZ function, readDecimal function, readInt function, readLogical function, readLongString function, readLongStringCP function, getMemptr function
For more information, see the BytesMessage.
For an example, see the Publishing, subscribing, and receiving an XML document in a BytesMessage.