I have a single module that can be called by several modules.
for each of these several modules, I have Globale variables related to them.
if I call my unique module with Module1, I want the single Module to work with Module1 Global variable, if it's called from Module2, then we use module 2...
so in this example, the variable name of [GlobalVariable] should differ based on the module calling the Single Module.
I know I could get around by using a SWITCH / CASE in my SingleModule for each seperated module calling it, but there's gotta be a better way, since the use of a SWITCH /CASE would involve programming change in my SingleModule each time I create another module calling it...
the reson I was not using a reference is that since I'm quite new to all this, I was not aware of this REF method, you pointed me to the right direction, and everything works now
Bookmarks