TE Edit Control .NET Core / .NET Framework Help
Product page

TerGetLastMessage

Get the last message.

int TerGetLastMessage(out TerMessage, out DebugMessage);
string TerMessage;Returns the default user message text in English
string DebugMsg;Returns any debug message associated with the last message. The debug message need not be displayed to the user.

Return Value: This function returns the last message generated by the editor. This value is valid only if saving of the messages is enabled by setting the TFLAG_RETURN_MSG_ID flag. This flag is set using the TerSetFlags function.

The message string constants (MSG_) are defined in the TER.H file. The description for the message ids can be found in the TER_MSG.H file.