Count Property

Office Web Discussions Client Visual Basic

Returns the number of items in the specified collection. Read-only Long.

Remarks

Discussions(1).Count returns the number, or count, of items in the first discussion in the Discussions collection. The Count property doesn’t count recursively, however, and any discussions that are replies to the Discussion(1) object aren’t included in the count.

Example

This example displays a message box containing the number, or count, of all discussions in the Discussions collection.

Dim dscDiscussions As Discussions
Set dscDiscussions = _
    OpenDiscussions("http://examples.microsoft.com")
dscDiscussions.Add "Supply room questions", _
    "Did anyone order staples?", 
MsgBox dscDiscussions.Count