Progress
External Program
Interfaces


getTextPartByIndex

In Message Objects

This function expects an index. If successful, the function retrieves a text part and returns the content type as a CHARACTER string.

This function converts the text part from UTF-8 to the SESSION:CPINTERNAL code page.

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

NOTE: If the message body exceeds 32K, this function raises an error. To avoid this, use getBytesPartByIndex.

For information on this function in context, see the "MultipartMessage" section in Accessing SonicMQ Messaging From the Progress 4GL."


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