You are here: Understanding the Meridian event procedures > About the asset management events > AIMS_DeleteComment event

AIMS_DeleteComment event

Occurs after a user has deleted a comment from a document in Meridian Explorer.

Syntax
Function AIMS_DeleteComment (commentText As String, attachmentType As String, numberOfComments As Long)
Parameters

Name

Description

commentText

The text of the comment.

attachmentType

The type of file attached to the comment.

The possible values are:

0 – No attachment
1 – Redline
2 – Image

numberOfComments

The total number of comments on the document.
Example
Function AIMS_DeleteComment(commentText, attachmentType, numberOfComments)
   If numberOfComments = 0 Then
       Document.Log "All comments have been removed from " + Document.FileName + vbNewLine + "Text: " + commentText
   Else
       Document.Log "A comment was removed from " + Document.FileName + vbNewLine + "Text: " + commentText             
   End If
End Function