ModalResult: FormModalResult;
The ModalResult property determines the result that is returned after pressing the button on the modal form when this form is closed. It is not relevant if the form is not modal.
NOTE. After modal form has been closed, basic properties of all components and of the form are saved till the end of procedure, in which the modal form was created.
See also: