Theater SDK Banner 

Art
[Previous][Next]

Titles.Count Property

Returns a Long value specifying the number of Title objects in a Titles collection object.

Syntax

Titles.Count

Remarks

You can use this property with a For...Next statement to carry out an operation on the objects in a collection, as shown in the following example.

Example

The following example uses the Count property to enumerate through a Titles collection object and  generate a list of IDs of Title member objects.

Sub enumTitles(server As String)
    Dim title As IMSrvTitle
    
    MediaServer1.SetServer server
    
    MsgBox("There are " & MediaServer1.Titles("*").Count & " titles.")
    
    For Each title In MediaServer1.Titles("*")
        MsgBox(title.Name)
    Next
End Sub
[Previous][Next]



© 1996-1998 Microsoft Corporation. All rights reserved