Reflection Desktop VBA Guide
Attachmate.Reflection.Objects Library / Attachmate.Reflection.Objects.UserInterface Library / Frame Object / GetViewByTitleText Method
The title text to match
Example
In This Topic
    GetViewByTitleText Method
    In This Topic
    Gets the view that matches the title text.
    Syntax
    expression.GetViewByTitleText( _
       ByVal titleText As String _
    ) As View object 
    where expression is a variable that represents a Frame Object

    Parameters

    titleText
    The title text to match

    Return Value

    The View object that matches the title text, or null if no View object matches it.
    Remarks

    For more about using GetViewByTitleText, see:

    Controlling Macro Execution

    Example
    This sample places custom text in the title of the selected session in the Reflection Desktop.
    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