Entries

Entries are ProcScript modules defined by the entry ProcScript statement. They can be used as private functions, or they can be executed in response to a call statement.

Global ProcScript modules are also entries, but the entry is implicitly defined by the ProcScript name.

Any entry, including a global ProcScript, can be used as a private function directly in code if it has a return type (defined with the returns statement). For more information, see User-Defined Functions.

A local entry can be defined in any code container within a component, including entity and field code containers. However, all entries have component scope, so it is best to define them in the Script container of the component object. This makes it easier to centralize, locate, and maintain these modules.

During compilation, if there are multiple entries defined with the same name, the compiler will only compile the last entry of that name that it encounters. This can lead to unexpected behavior if you are not aware that there are multiple entries defined, or do not know where they are defined. You can use the Compiled Modules Inspector in the Uniface IDE to get insight into such a situation.

Related Topics