use
You can include EGL use statements to
simplify your references to variables and functions in other parts.
You can, for example, write a use statement
that gives your program easy reference to names in a data table, library,
or form group, but only if those parts are visible to the program.
The use statement saves you from having
to qualify the referenced name with the name of the part. For example,
instead of having to refer to CustomerLib.getCustomer(),
you can create a use statement for CustomerLib
and simply refer to the function as getCustomer().
If you use form groups, there are restrictions. For a basicProgram
type, the following restrictions apply:
- The program can specify only a single use statement for a FormGroup
- That statement must specify a main FormGroup, that is, the statement must not specify helpGroup = YES
- The form group can include only print forms; text forms are not permitted
Other restrictions apply; see the related reference at the end of this topic for the UI technologies that you might be using.
Syntax

- partName
- The name of the part you want to add to the scope of the current part.
- partProperties
- Depending on the type of part you specify, you may be able to specify properties for the use statement. See "Related reference" at the end of this topic.
Example
use CustomerLib;
function main
getCustomer(); // function in CustomerLib
...
end