CreateComment method

Adds a comment to a topic.

Syntax


C++
HRESULT CreateComment (
   BSTR Title,
   BSTR Description,
   ERUTextFormat DescriptionFormat,
   IERUItem* pResponseTo,
   IERUItem** ppComment,)
Scripting languages
Set Comment = Object.CreateComment (
   Title as String,
   Description as String,
   DescriptionFormat as ERUTextFormat,
   ResponseTo as IERUItem)

Parameters


Title

The title of the new comment.

Description

The description of the comment.

DescriptionFormat

Indicates whether the Description parameter is in HTML or plain text format.

For further information, see ERUTextFormat.

pResponseTo

Identifies the comment that the new comment is a response to. If the value of pResponseTo is NULL (C++) or Nothing (scripting languages), the new comment is created at level 0. If the value of pResponseTo is anything other than NULL/Nothing and you are creating a response on a discussion page that does not allow nested comments, or if the comment you are responding to is part of an embedded topic, CreateComment returns the error EROOM_E_INVALIDOPERATION.

ppComment

Upon return, an IERUItem interface pointer to the newly-created comment.

Return value


C++

The return code.

Scripting languages

An IERUItem interface pointer to the newly-created comment.

 

Home

Interface

IERUTopic


See also

Creating Items