WinStudio
IWSForm interface, parent forms
Returns a Boolean value indicating whether the last modal child find form was closed by clicking the OK button. Read-only.
object.LastModalChildEndedOk
Part |
Description |
| object | Required. A reference to the parent form. |
An example of a modal child find form is the query form that is displayed when a user right-clicks in a component and selects the Find command. The user uses the modal child find form to issue a query and find a value for the component. If the user selects a value from the results of the query and clicks OK, then the selected value is returned to the component on the parent form.
A return value of:
Sub Main()
Dim bOK As Boolean
bOK = ThisForm.LastModalChildEndedOk
If bOK Then
Application.ShowMessage("OK")
Else
Application.ShowMessage("Not OK")
End If
End Sub