09-18-2008, 02:55 PM
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.
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.