Globals execution order?

agraham

Expert
Licensed User
Longtime User
A question for Erel whose answer others might want to know.

Is the order of execution of the Globals Subs in a multi-module program guaranteed to be be the same in the IDE and when both legacy and optimised compiled?

If so what determines the order? Is Main.Globals always last?

The reason for asking is that Globals are useful for intialisation and it would be good to have/know a deterministic order in which they execute.
 

agraham

Expert
Licensed User
Longtime User
code from inside Globals should not call code from other modules.
I wan't thinking of code but of passing initialised variable values "along the chain" so to speak from, say, the originally defined values in Main.Globals to other modules that require different initial values in different projects. However it is obviously not to be so I will have to write intialisation routines.
 
Top