Forum Discussion

royd's avatar
royd
Regular Contributor
8 years ago
Solved

Global variable trouble!

Hello everyone   I am having serious trouble with Global vaiebles! In the past, I did use Global variable successfully. Only difference this time is, I have 3 Global variable coming from UnitA to U...
  • tristaanogre's avatar
    tristaanogre
    8 years ago

    That's to be expect... you are trying to use B unit code in unit A... which is not allowed because you're not allowed circular references...

    What this comes down to, honestly, is that you're going to need to re-engineer some stuff so that you keep your code modularized in specific units so you don't end up with circular references.  Unfortunately, that's you're only recourse here... in order to call the code you want to call, you need USEUNIT clauses... but you can't do that because doing so puts you in the situation of having circular references... the only solution is to re-engineer.