Working With Maintain Procedures

In this section:

A Maintain application can include multiple procedures. Each procedure comprises one FOCEXEC file and, optionally, a WINFORMS file containing the procedure's Winforms. This section gives you a brief overview of how to develop, store, and run Maintain procedures.


Top of page

x
Developing Procedures

FOCUS provides you with several ways to develop a Maintain procedure:

Because each Maintain procedure must reside in its own FOCEXEC, you cannot create ad hoc procedures at the FOCUS command prompt. For more information about using the Winform Painter to develop procedures, see Tutorial: Painting a Procedure, and Using the Winform Painter. For more information about using TED, see the Overview and Operating Environments manual.


Top of page

x
Storing Procedures

Each Maintain procedure is stored in two files:

Each procedure has one FOCEXEC file and—if it has a user interface—one WINFORMS file. The two files share the same member name. For example, the Payroll procedure is stored in the member PAYROLL of the FOCEXEC PDS and member PAYROLL in the WINFORMSPDS.


Top of page

x
Executing Procedures

FOCUS provides you with the flexibility of executing a Maintain procedure from different kinds of environments, and employing different control techniques.

In addition, you can accelerate execution by compiling a procedure using the COMPILE command. You may wish to work with the procedure in its regular form while you are developing it, and then—once it is finished—compile it to make it faster.

You can run a procedure from the following environments:

The EXEC command, Execution and Menu windows, and the Window Painter are all described in the Developing Applications manual. The CALL, COMPILE, and RUN commands are described in Command Reference.


Information Builders