Attachmate.Reflection.Objects Library (User Interface) > Frame Object : GetViewByTitleText Function |
object.GetViewByTitleText( _ ByVal titleText As String _ ) As _View
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