Progress
External Program
Interfaces


getTextPartByID

In Message Objects

This function expects a content ID. 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 getTextPartByID RETURNS CHARACTER 
  (INPUT contentID AS INTEGER, OUTPUT partBody AS CHARACTER). 

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

For information on this function, 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