How Do I Share a Function Between Several Projects? (Magic xpa 3.x)
The availability of a given function is determined by the Scope property. If the Scope is Global, then the function will be visible for this task and all its children. This means that if the function is entered in the Main Program with a Scope of Global, then the function will be visible within the entire project. If the Scope is Global, it will also be visible within the host project.
-
Create your function in the Main Program.
-
Click on the field after Scope: (or tab to it).
-
Choose Global from the selection list.
Now the function will show up when you are generating a component, as shown below.
How Do I Reuse Magic xpa Objects Across Projects?