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().

Syntax

Syntax diagram for the core use statement
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

Feedback