LastModalChildEndedOk property (WinStudio scripts)
Applies To
IWSForm interface, parent forms
Definition
Returns a Boolean value indicating whether the last modal child find form was closed by clicking the OK button. Read-only.
Syntax
object.LastModalChildEndedOk
Part | Description |
object | Required. A reference to the parent form. |
Remarks
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
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 , then the selected value is returned to the component on the parent form.A return value of:
- TRUE indicates that the last modal child find form was closed by clicking the button.
- FALSE indicates that the last modal child find form was not closed by clicking the button.
Example
Sub Main() Dim bOK As Boolean bOK = ThisForm.LastModalChildEndedOk If bOK Then Application.ShowMessage("OK") Else Application.ShowMessage("Not OK") End If End Sub