Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global Variable Questions
#3
Thanks!

On a related question, I haven't had much luck having "thread" variables be accessible throughout the many functions in my macro (while global always works, of course). I'm not talking about the variables passed to/from functions for processing but general stored variables (such as user settings) and declarations that need to be referenced throughout the the macro and function sub processes. Is this where it is appropriate to use global variables? I feel that I should be able to get away with thread variables but perhaps I am wrong.

For an example, my main macro looks something like below, and I need the declarations from the LoadVars and values from INI functions throughout:

Fnc_LoadVars

Fnc_ReadAppIni

Fnc_ReadUserIni

Fnc_DataEntry

if this goto skipped

Fnc_SomeProcess

...
skipped
...

FncAnotherProcess

etc.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)