Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » QAnywhere » QAnywhere C++ API Reference » QAManagerBase class

browseNextMessage function Next Page

cancelMessage function


qa_bool QAManagerBase::cancelMessage(
qa_const_string msgid


Cancels the message with the given message ID.

The cancelMessage method puts a message into a cancelled state before it is transmitted. With the default delete rules of the QAnywhere Agent, cancelled messages are eventually deleted from the message store.

The cancelMessage method fails if the message is already in a final state, or if it has been transmitted to the central messaging server.

For more information about delete rules, see Message delete rules.


True if and only if the operation succeeded.