Documentation Center

PslSourceLists.Item

Item returns a source list contained in the PslSourceLists collection. The source list can be indicated by its index (1,...) or its title. Item is the standard function, so the name can be omitted.

Syntax

Expression.Item (Index as PslTransList, LangID as VARIANT) as PslTransList

Expression Required. Object of type PslTransLists

Index Variant, Required. Either the index (1,...) of the source list or its title

Example

' Opens all source lists of the current project
Dim prj As PslProject
Set prj = PSL.ActiveProject

Dim src As PslSourceList
count = prj.SourceLists.Count
For i = 1 To count
  Set src = prj.SourceLists(i)
  src.Open
Next i