Type: Integer
Availability: Read or write at run time
The modalResult property of the Form class contains the returned value for the showModal method call in runtime forms that are initiated as modal. You can write logic to return a value that informs the calling method of the result of the modal process. This property is set to zero (0) for any form when it is created.
The setting of this property has meaning only for a form initiated as modal. The final value of the property when the modal form is unloaded is returned by the showModal method call. No value is assigned automatically after creation or (for example), after pressing the Cancel button.