Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : setText procedure
 

setText procedure

Clears the message body and sets a new text value.

Syntax

PROCEDURE setText.
DEFINE INPUT PARAMETER textValue AS CHARACTER.

Applies to

Message objects

Notes

*The call can be made when the message is in write-only or read-only mode.
*After the call, the message is in write-only mode. You can use appendText procedure calls to append more text.
*As an alternative to concatenating multiple CHARACTER segments with the appendText procedure , use setLongText procedure.

See also

createTextMessage procedure, setText procedure, setLongText procedure, appendText procedure , endOfStream function, getCharCount function, getText function, getTextSegment function, getLongText function, getLongTextCP function
For more information, see the TextMessage.