getTextPartByIndex function

Retrieves a text part and returns the content type as a CHARACTER string.

Syntax

FUNCTION getTextPartByIndex RETURNS CHARACTER
  (INPUT iIndex AS INTEGER, OUTPUT partBody AS CHARACTER).

Applies to

Message objects

Notes

  • This function converts the text part from UTF-8 to the SESSION:CPINTERNAL code page.
  • If the message body exceeds 32K, this function raises an error. To avoid this, use getBytesPartByIndex function.

See also

getBytesPartByIndex function, getMessagePartByIndex function, #rfi1387308712678

For more information, see the MultipartMessage.