Send comments on this topic.
GetViewByTitleText Method
Attachmate.Reflection.Objects Library (User Interface) > Frame Object : GetViewByTitleText Method
titleText
Gets the view that matches the title text.

Syntax

 
object.GetViewByTitleText( 
   ByVal titleText As String
) As View

Parameters

titleText

Example

This sample places custom text in the title of the selected session in the Reflection workspace.
Copy Code
Sub Sample_Frame_GetViewByTitleText()
 
    Dim v As Attachmate_Reflection_Objects.View
    ThisView.titleText = "ALERT!"
    
    'If you know the titleText, you can use it to retrieve the View object.
    Set v = ThisFrame.GetViewByTitleText(ThisView.titleText)
    
    'Using Focus is useful if more than 1 view is open...
    v.Focus
End Sub

See Also