When you declare a main program that runs in
a text application, you have the option to specify an input form,
which is a form that is presented to the user before the program logic runs.
Two scenarios are possible:
- If the program is the target of a show-form-returning-to statement from
an EGL-generated program, the sending program presents a form to the user,
and that form must be identical to the input form of the receiving program.
The receiving program is invoked only after the user submits the form. After
the user submits the form, the receiving program does not present the input
form a second time; instead, the initial logic (the execute function) runs.
- If the program is the target of a transfer statement from a program (EGL
or non-EGL) or if the program is invoked by the user or by an operating-system
command, the receiving program converses the input form. (In this case, input
fields on that form are initialized before display.) After the user submits
the form, the initial logic (the execute function) runs.
The input form must be in the form group that you specified in the program-part
declaration.