I know this has been of some debate of Globals vs Locals, but I may have run into a situation where I have a Global Variable, and I set that variable depending on the answer from a function.
In this case, my global is not getting set, unless I set the Global directly in the function being used instead of Function = setting, and Global = Function.
I am attempting to come up with a example (as we are all fond of) of my much larger program, but in the meanwhile I hoped someone would know exactly WHEN a global is set? or some timeframe I need to wait for it to be set? (the second option does not seem likely since GlobalFlag = Function is one line and MSGBOX Global Flag is the next line, Unless threads are what is doing it to me?)
In this case, my global is not getting set, unless I set the Global directly in the function being used instead of Function = setting, and Global = Function.
I am attempting to come up with a example (as we are all fond of) of my much larger program, but in the meanwhile I hoped someone would know exactly WHEN a global is set? or some timeframe I need to wait for it to be set? (the second option does not seem likely since GlobalFlag = Function is one line and MSGBOX Global Flag is the next line, Unless threads are what is doing it to me?)
Comment