Documentation Center

Source lists

The collection PslSourceLists contains the source lists of a project. Your access this collection with PassoloApp.SourceLists.

This example lists all source lists of the current project:

Sub Main 
 Dim prj As PslProject 
 Set prj = PSL.ActiveProject If prj
 Is Nothing Then Exit Sub 
 Dim i As Integer 
 For i = 1 To prj.SourceLists.Count 
  Dim src As PslSourceList 
  Set src = prj.SourceLists(i) 
  PSL.Output src.Title 
 Next i 
End Sub

Because PslSourcesLists is a collection, the loop can be easier written as:

Dim src As PslSourceList For Each src In prj.SourceLists PSL.Output
src.Title Next src

The current source list, i.e. the source list from the active window or the source list that is selected in the project window, can be accessed with PassoloApp.ActiveSourceList.