Add Method

Microsoft Office Web Discussions Client Language

Show All

Add Method

       

Add method as it applies to the Discussions object.

Adds a new Discussion object to the specifie Discussions collection.

expression.Add(Subject, Text, Bookmark)

expression   Required. An expression that returns one of the above objects.

Subject  Optional String. The subject of the specified discussion.

Text  Optional String. The body text of the specified discussion.

Bookmark  Optional String. The unique identifier for the position of the specified discussion within the document.

Remarks

The Author property for the new discussion is automatically set to the current user name determined by the Microsoft Office host application.

 

 

Add method as it applies to the DiscussionServers object.

Adds a new DiscussionServer object to the DiscussionServers collection.

expression.Add(FriendlyName, ServerAddress)

expression   Required. An expression that returns one of the above objects.

FriendlyName  Required String. The friendly name of the specified discussion server.

ServerAddress  Required String. The Uniform Resource Locator (URL) of the specified discussion server.

Remarks

The URL specified in the ServerAddress argument must contain a trailing slash character, as in the following example, which uses the URL http://samples.microsoft.com.

dscServers.Add "Samples Folder", _
    http://samples.microsoft.com/

 

Example

As it applies to the Discussions object.

This example adds a new discussion response to the specified Discussion object.

Set strResponse = dscDiscussions(1).Discussions.Add _
    ("Supply information", "Staples are here!", "Staples")

As it applies to the DiscussionServers object.

This example adds a new discussion server with the friendly name "Corporate Information Server" and the URL http://samples.microsoft.com.

Dim dscServers As DiscussionServers
Set dscServers = DiscussionServers
dscServers.Add "Corporate Information Server", _
    "http://samples.microsoft.com/"