Working with Procedures
Overview
There are two types of procedures:
1. Local Procedures
A specific set of commands (processes), inside a program, that uses local, program or global variables to manipulate data. The local procedure can only be called inside the program it is contained in.
When creating a local procedure, you can define input and output parameters that are shared with the processes that call that local procedure.
See Local Procedures.
2. Global Procedures
A specific program used for recurring actions and can be reused in other projects.
This procedure does not use global variables to prevent conflicts with global variables being used in a program.
It can contain screens, objects, routines and local procedures. Basically, it can be considered as a standard program.
To exchange data between the program that called this procedure and the global procedure, it is mandatory to define "input" and "output" parameters.
A global procedure is reusable, meaning, you can create a global procedure in an MCL-Designer V4 project, export it into Library and, then, import it into other MCL-Designer V4 projects.
See Global Procedures.