Description: | Opens (Shows) a form in "Modal" mode, taking an extra, modal style, parameter to the CallForm method. "Modal" means that the parent form is inactive until the child form is closed. The child form looks like a dialog box. It is different from the OpenForm method in that control is returned after all the child form's procedures have completed. The child form cannot be re-opened if the child form is already open. |
Used in controls: | None. |
Used in objects: | Form |
Parameters: | 1. VT_BSTR - FormNameX(8192) |
Description of Parameters: | FormName: The name of the form to be opened. DllName: When the form is in a DLL file, defines the name of the DLL file containing the form. Cookie: An integer to distinguish the opened form. ModalStyle: A modal style. Either: |
Return value: | VT_I4 - ReturnValueS9(9) COMP-5 This is the value set in the Result parameter when the CloseForm method is invoked. |
DLL Search Path: | When the DllName parameter does not contain the full path, PowerCOBOL searches for the DLL folders in the following order: 1. The folder containing the execution file. 6. The folders of the PATH environment variable. |
Backward compatibility | None. |