ModalResult Method
Object List Next Object
Defined By: Form
Description:
Sends a value back to the method that called ShowModal on the given Form.
Declaration:
Sub ModalResult(ByVal result As Long)
Details:
When a form is shown with a call to ShowModal, no other Form on the desktop
that is associated with the application containing the modal form, can be
interacted with. The most common uses of modal forms are error boxes and common
dialogs. Somewhere in the code for a modal form should be a call to the ModalResult
method. Calling ModalResult will remove the modal status from a form allowing
other forms to be usable again. Normally, a call to either Hide or UnloadForm
follows a ModalResult call.