Previous Topic: Dialog ControlNext Topic: Design Considerations


Passing control to another dialog

A dialog passes control to another dialog based on the execution of a control command and/or the user's selection of processing. The dialog that receives control can be a different dialog, a copy of the executing dialog, or all or part of the executing dialog itself.

The application developer can use specific control commands to perform the following operations:

  1. Pass processing control from one dialog to another dialog or to a user program.
  2. Display a dialog's map.
  3. Terminate an existing dialog or application.
  4. Exit CA ADS.
  5. Pass processing control to specified points within a dialog and reinitialize the record buffers associated with a dialog.

Most of the control commands used are available to all applications. When designing dialogs that will become part of an application that is compiled in an ADSA session, the developer can also use the EXECUTE NEXT FUNCTION command.

For a discussion of the commands that direct the flow of control within an application, see Application Concepts. This appendix also contains a diagram and discussion of how the runtime system determines the order in which the functions of an application are executed.