ModalChildForm property (WinStudio scripts)
Applies To
IWSForm interface
Definition
Returns a form object for the active modal child form if one exists.
Syntax
object.ModalChildForm
Part | Description |
object | Required. A reference to a valid form object. |
Remarks
If no modal child form is active, a run-time error is generated. You can use the Visual Basic keyword Is Nothing to test the object status.
Example
Sub Main()
If Not ThisForm.ModalChildForm Is Nothing Then
Application.ShowMessage("Modal Form = " & ThisForm.ModalChildForm.Caption)
End If
End Sub