|
VADELIA |
|
|
MADELIA |
|
(I) (C) |
|
|
(I) (C) |
Section for use
All
Syntax
EXECUTE WindowName Mode
Mode |
→ |
*NON_MODAL | None |
Description
This instruction displays the window WindowName. You can use the parameter Mode to configure the behavior of the called window.
If Mode is set to *NON_MODAL, the called window will not suspend the calling window, and the instructions following the EXECUTE instruction will be executed as soon as it is displayed.
Child window class windows are always executed in a non-inhibiting manner.
Note:
A program that executes a window will only terminate if its own windows and any other windows that are executed modally or otherwise (by the program itself or by other programs in the same process) after its window is executed have been closed.
If the parameter Mode is not set, the called window will suspend the calling window, and the instructions following the EXECUTE instruction will only be executed after the called window has been closed with the TERMINATE instruction.
Example
EXECUTE DisplayItems
EXECUTE DisplayItems *NON_MODAL
* In an INIT_PGM section
INITIALIZE SEL_ITEM_WIN
* Initializes the window layout fields according to the INITIALIZATION section
* instructions
EXECUTE SEL_ITEM_WIN
* Displays the window on the screen