Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.37 DoModal2 Method

Description:

Activates the form in "Modal" mode, taking a modal style parameter.

It can only be used if the form is already loaded.
"Modal" means that the parent form that opened a child form is inactive until the child form is closed.

It looks like a "Dialog box".

Used in controls:

None.

Used in objects:

Form

Parameters:

[VT_I4 - ModalStyleS9(9) COMP-5]

Description of Parameters:

ModalStyle: A modal style. Either:
POW-MODALSTYLE-APPLICATIONMODAL: Only the parent form is inactive.
or:
POW-MODALSTYLE-TASKMODAL: (Default) All forms in the same thread. except the activated form, are inactive.

Return value:

VT_BOOL - ReturnValueS9(4) COMP-5

POW-TRUE indicates normal completion.
POW-FALSE indicates an error.

Backward compatibility
method name:

None.