TE Edit Control Java / HTML-JavaScript Help
Product page

TerGetLastMessage

Get the last message.

int TerGetLastMessageCode();
String TerGetLastMessage();

Return Value: These methods return the last message generated by the editor. The TerGetLastMessageCode returns the numeric message code, and the TerGetLastMessage method returns the corresponding message text.

The return 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 description for the message codes can be found in the TER_MSG.java file.