Performable
A Performed Global Routine is a separate AMT object that can be called by other AMT objects within the same AMT application. The Global Routine becomes a separate DLL executable once it is generated, which can only be used in the same AMT application that it is a part of. Only a DLL Global Routine can be used by any other AMT applications and Windows programs.
Just like in a form, all code in a Performed Global Routine must be contained within one or multiple routines. At least one routine must be called "Main" to define the starting point of the Global Routine.
Constants and variables that are declared within a Performed Global Routine are only available to the routine. Therefore, the constants and variables are not accessible to an AMT object calling this Global Routine. Constants and variables present in the Global Routine can exist without issues in the AMT calling this routine.
The Main routine can be called directly from another object in the same way that local routines do by using a routine call. It is necessary to use public routines to call routines directly in other objects using the public routine call.