Share via


List Object

Multiple objects
List

Represents a collection of strings or numbers that contain field identification numbers, field names, reports, resource filters, resource tables, resource views, task filters, task tables, task views, or views. There is no collection for List objects. Where the List object appears in this diagram, it can be accessed through the Item   List properties of the appropriate objects, where Item is a placeholder for one of the items mentioned above.

Using the List Object

Use a property like the ReportList property to return a List object. The following example displays a list of all the reports available in the active project.

Dim Items As Integer, ReportNames As String

For Items = 1 To ActiveProject.ReportList.Count
    ReportNames = ActiveProject.ReportList(Items) & _
        ListSeparator & " " & ReportNames
Next Items

MsgBox Left$(ReportNames, Len(ReportNames) - Len(ListSeparator & " "))

Properties | Application Property | Count Property | Item Property | Parent Property

Parent Objects | Project Object, Projects Collection Object | Selection Object

Child Objects

See Also | FieldIDList Property | FieldNameList Property | MapList Property | ReportList Property | ResourceFilterList Property | ResourceGroupList Property | ResourceTableList Property | ResourceViewList Property | TaskFilterList Property | TaskGroupList Property | TaskTableList Property | TaskViewList Property | ViewList Property