:ParseBuffer()
Class
Syntax
:ParseBuffer( cBuffer, nBytes, [hMessage] ) -> lSuccess
Parameters
|
|
cBuffer |
Text to be added to the message. |
|
|
nBytes |
Optional. Number of Bytes in cBuffer to parse and add to message. If not provided, all text in cBuffer will be used. |
|
|
hMessage |
Optional. Handle of the message to act on. Provided during :CreateMessage() operation |
Return
Logical indicating Success.
Returns .T. if the operation succeeds, otherwise returns .F.
To get more information about the error, see :nErr and :cErr.
Description
The :ParseBuffer() method parses the contents of the specified buffer and adds the contents to the message.
This function is useful when the application needs to parse an arbitrary block of text and add it to the specified message.
If the buffer contains header fields, the values will be added to the message header. Once the end of the header block is detected, all subsequent text is added to the body of the message.
See Also
:ImportMessage(), :ParseHeader()