TextSetMessage()

Inserts the text contained in MessageText into the Message field of the currently active compose view. The text is either appended to the message, or replaces the text of the message, based on the value of Append.

Token ID

AFTKN_SET_MSGTEXT or 571

Syntax

VOID TextSetMessage( ANSISTRING MessageText; 
                     [BOOLEAN Append])

Parameters

MessageText As ANSISTRING

Text to insert into the message.

Append As BOOLEAN

(Optional) Specifies the following:

  • False Default. Replaces existing text.
  • True Appends to existing text.

Remarks

The message body field (in the Message View and the Object API) has a limit of 32,000 characters. The Message View will stop accepting data after 32,000 characters.