There is a specific flow
of control for frame SCL. In general, the INIT section runs before
the window opens, the MAIN section executes after a field is modified
or a component is selected, and the TERM section runs when the window
closes. Because the FRAME entry allows additional statements to run
for components as well as for multiple extended tables via SCL methods,
there are additional points of interest in the flow of control in
FRAME entry programs.
After each SCL section
runs, if the FRAME entry's status has been set to
H
(for Halt), execution halts. You can set the status to
H
either by assigning the _STATUS_ variable in the
SCL or by calling the FRAME entry's _setStatus method. Likewise, a
STOP statement in the frame SCL program can halt the frame application,
interrupting the normal flow of control. However, in both of these
cases, all _term methods execute.