CasewareDocs

Clear

Removes all groups and messages from the collector.

Compatibility

Available as of IDEA version 9.1.1

Syntax

Clear()

Example

Option Explicit

'messages, IMessagesCollector

Sub Main()

Dim oMessages As Object
Set oMessages = SmartContext.Messages

'Add - Adds a message to a new anonymous group at the end of the list or to a group with the specified name, or changes the title of a specified group.
oMessages.Add "Show this text as ""anonymous"" message."
oMessages.Add "This text belongs to the first title", "First Group Title", "FirstGroup"
oMessages.Add "Text belonging to a second title", "Second Group Title"
oMessages.Add "Text belonging to first group", "", "FirstGroup"

End Sub

Result

Standard Import Routine messages and error protocol

Messages and Error Protocol