FindForm method (WinStudio scripts)
Applies To
IWSApplication interface
Definition
Returns a Visual Basic object that references the specified form.
Syntax
varObject = Application.FindForm( string )
Part | Description |
varObject | Required. A Visual Basic variable that is defined as an object and that references the form object. |
string | Required. The name of the form. |
Remarks
The specified form must be open in WinStudio or must be accessible from a form that is open. However, the form does not have to have focus.
The Visual Basic Set instruction assigns an object reference to a variable.
Example
Sub Main Dim oForm As IWSForm oForm = Application.FindForm("ReportOptions") Application.ShowMessage(oForm.Caption & "is open.") End Sub