I am trying to get a list of all the items in a project but I only get the first 256 items. what am I doing wrong? This is the code I use.
Set oType = oServer.typeForName(oServer.TypeNames.File)
Set oFLM = oFLMFact.Create(oView)
‘ Include all folders
oFLM.includeFolders oView.RootFolder.SubFolders.Item(8), -1
‘ Create the Type objects
‘ Files
Set oFLM = oILMFact.Create(oType, oFLM)
starflag = 0
For Each oFile In oFLM.ItemsArray
If oFile.Name = filestr Then
starflag = 1
‘ Build the Hyperlink
filestr = “starteam://” & oServer.Address & “:” & oServer.Port _
& “/” & oProject.ID & “;ns=Project;scheme=id/” & oView.ID _
& “;ns=View;scheme=id/” & oFile.ID _
& “;ns=File;scheme=id;scope=full”
Exit For
End If
Next