Hi,
Do you want to access the folder and the view points within it? If yes, following is some small code.
Private Sub recurseFolderView(view As InwOpFolderView)
Dim eachView As InwOpSavedView
Dim oFolderView As InwOpFolderView
For Each eachView In view.SavedViews
If eachView.Type = eSavedViewType_Folder Then
Debug.Print eachView.Name & "is a folder"
Set oFolderView = eachView
recurseFolderView oFolderView
Else
MsgBox "next view " & eachView.Name
m_state.ApplyView eachView
End If
Next
End Sub
Private Sub ApplyViewWithEachSavedView()
Dim savedview As InwOpSavedView
Dim oFolderView As InwOpFolderView
For Each savedview In m_state.SavedViews
If savedview.Type = eSavedViewType_Folder Then
Set oFolderView = savedview
recurseFolderView oFolderView
Else
MsgBox "next view " & savedview.Name
m_state.ApplyView savedview
End If
Next
Regards,
Xiaodong Liang
Developer Technical Services