InfoConnect for Unisys
GetViewByTitleText Method
Example 


Gets the view that matches the title text.
Syntax
'Declaration
 
Function GetViewByTitleText( _
   ByVal titleText As String _
) As IView
'Usage
 
Dim instance As IFrame
Dim titleText As String
Dim value As IView
 
value = instance.GetViewByTitleText(titleText)
IView GetViewByTitleText( 
   string titleText
)

Parameters

titleText
Example
void Sample_Frame_GetViewByTitleText()
{
    //You can alert users by placing custom text in a view's titleText.
    //If you know the titleText, you can retrieve the view object with it.
    Application app =  MyReflection.ActiveApplication;
    IFrame frame = (IFrame) app.GetObject("Frame");
    frame.SelectedView.TitleText = "Alert!";
    //...
    IView view = (IView)frame.GetViewByTitleText("Alert!");
    view.Focus();
}
See Also