Use statement

The use statement identifies one or more types so that subsequent logic can refer to the members in those types without including the type name in the reference. The statement is a convenience and can identify Library and Enumeration types.

Syntax



Syntax diagram for the throw statement

typeName
The name of a Library or Enumeration type.
Assume that the MyLibrary library declares the myFunction function, the myVariable variable, and the MYCONSTANT constant. The presence of the use statement allows the following program to refer to those members without including the library name in each reference:
package common;

program MyProgram
   use MyLibrary;

   function main()
      myVariable = MYCONSTANT;
      myFunction();
   end
end

Compatibility

Table 1. Compatibility
Target Issue
Java No issues
JavaScript No issues.