You can integrate libraries in PAscript programs, PAgraph++, or in other libraries with the keyword using. You can then access all functions, variables and constants that are not explicitly declared as private.

Public functions or variables are called by prefixing the name of the library. The colon operator : is used for access to exports and also for access to attributes or type functions.

Example

Calling a Function

General syntax for calling a function:

variable list = library name: function name (transfer parameter)

Whether transfer parameters and a list of return values are required depends on the definition of the function.

Using Variables

General syntax for using variables:

Variable = library name:identifier

If the data type of the exported variable does not match the data type of the target variable, a type conversion must be specified.

Using Constants

General syntax for using constants:

Variable = library name:constant

If the data type of the exported constant does not match the data type of the target variable or target constant, a type conversion must be specified.