WinStudio
IWSForm interface
Returns a form object for the active modal child form if one exists.
object.ModalChildForm
Part |
Description |
object | Required. A reference to a valid form object. |
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.
Sub Main() If Not ThisForm.ModalChildForm Is Nothing Then Application.ShowMessage("Modal Form = " & ThisForm.ModalChildForm.Caption) End If End Sub