Incorporating a Procedure Into an Application
When you create a procedure in the current project,
it is automatically incorporated into that project. However, you
are not limited to the use of procedures created in the project.
You can make procedures from another project available in the current project.
To incorporate a procedure from another project into the current
project, complete the following steps:
-
Add the directory of the procedure to the project path. When
you add the directory of a procedure to the project path, all project
files become available. For details on modifying available directories
for a project, see How to Modify Directory Paths.
-
Add a procedure to the project. Once
the directory of the procedure is visible to a project, add the
procedure to the project so it will be available for reporting and
deployment. For details, see How to Add a Procedure to a Project.
Note: You can also remove a procedure from a project.
For details, see How to Remove a Procedure From a Project.
x
Procedure: How to Add a Procedure to a Project
-
Open
the Procedures folder in the project.
-
If not
already selected, click the Displays all files in the project
path
button
on the Explorer toolbar.
The right window pane displays all procedures in the paths
defined for the selected project. Procedures that are not added
to the project path have a light gray icon next to them, and the
file type description is Focus Executable Visible within Project
Path.
-
Do one
of the following:
- Right-click
a procedure from the available procedures on the right, and select Add
to Project from the shortcut menu.
or
- Select a procedure
and click the Inserts the selected items into the project
button
on the Explorer toolbar.
The procedure icon changes
color to signify that it has been added to the project, and the
file type changes to Focus Executable.
Tip: Clicking
the Displays all files in the project path
button
on the Explorer toolbar toggles between the files that are visible
in the project path and the files that have been added to the project.
x
Procedure: How to Remove a Procedure From a Project
-
Open
the Procedures folder in the project.
-
If not
already selected, click the Displays all files in the project
path
button
on the Explorer toolbar.
The right window pane displays all procedures in the paths
defined for the selected project. Procedures that have been added
to the project path have a color icon next to them, and the file
type description is Focus Executable.
-
Do one
of the following:
- In the right
window pane, right-click a procedure and choose Remove
from Project from the pop-up menu.
or
- Select a procedure
and click the Delete
button
on the Explorer toolbar.
-
Click Yes to
confirm permanent removal of the procedure.