ParentForm property (WinStudio scripts)
Applies To
IWSForm interface
Definition
Returns the parent form object of a modal child or linked form object. Read-only.
Syntax
object.ParentForm
Part | Description |
object | Required. A modal child or linked form object. |
Remarks
You can use this property to access a form when multiple instances of the same form are open and they cannot be distinguished by the property ParentFormName.
If the specified form is not a modal child or linked form, a run-time error is generated. You can examine the properties IsLinkedChild and IsModalFindChild to determine the status of the form, or you can use the Visual Basic keywords Is Nothing to test the object status.
Example
Sub Main() If ThisForm.IsLinkedChild Then ThisForm.ParentForm.GenerateEvent("StdFormRefreshCurrent") End If End Sub