object.View( ByVal id As Object ) As View
- A Variant String or Integer.
Return ValueA View object.
|System.IndexOutOfRangeException||This exception is thrown when the numeric value that is passed in does not match the 1 based array.|
'Get a view based on its index position Sub Test_ViewVariantInteger() Dim myView As View Dim id As Variant id = 1 Set myView = ThisFrame.View(id) myView.TitleText = "Application" End Sub 'Get a view based on its title text Sub Test_ViewVariantString() Dim myView As View Dim id As Variant id = "Application" Set myView = ThisFrame.View(id) myView.TitleText = "Application" End Sub
When the id parameter is passed as a string, it specifies the title of a view. When id is passed as an integer, it specifies the 1 based index of the view in a given frame. The index value depends on the Workspace UI Preferences settings:
- The index is based on the left to right progression of tabs. The user can rearrange this order by dragging tabs with the mouse.
- The index is determined by the order in which the Windows are opened. The user cannot change this order.
- There is only one view per frame.