Progress
External Program
Interfaces


getBytesPartByIndex

In Message Objects

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

SYNTAX
FUNCTION getMessagePartByIndex RETURNS CHARACTER 
  (INPUT iIndex AS INTEGER, OUTPUT memPtr AS MEMPTR). 

NOTE: Before calling this function, call SET-SIZE to free any memory allocated by the MEMPTR.

NOTE: The bytes part does not undergo any code-page conversion. If it consists of text data, it is encoded in UTF-8. To encode it differently, either convert the code page manually or use one of the “getTextPartBy...” routines.

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