Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## 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 the getBytesPartByIndex function.

> #### See also

> getBytesPartByIndex function, getMessagePartByIndex function, getTextPartByIndex function
> For more information, see the "MultipartMessage" section.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095