:ParseHeader()
Class
Syntax
:ParseHeader( cHeader, [hMessage] ) -> lSuccess
Parameters
|
|
cHeader |
Text which contains the header and value to be added to the message. |
|
|
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 :ParseHeader() method parses a line of text and adds the header and value to the current message.
This method is used to parse a line of text that is part of a message header. The string must consist of a header name, followed by a colon, followed by the header value. The header name may only consist of printable characters, and may not contain whitespace (space, tab, carriage return or linefeed characters).
See Also
:ImportMessage(), :ParseBuffer()