Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filter function problem
#6
OK just to be sure.

My setup owns a function triggered at QM launch : QMStartProc

Say I put a global variable in it, available for ANY macro/function in Qm, anytime.

Q1. I should then declare it in QMStartProc -> int+ g_globalVariable=100. Correct?

Q2. For using it in a macro later, say Macro1 , I type too the declaration in Macro1 -> int+ g_globalVariable
What is it's value then, 100? What if I declare it like int+ g_globalVariable=50 in Macro1??

Q3. I use a Filter function, and want a variable *ONLY* in this function, but global to keep it's value available between
filter function calls.
Do I use int+ g_globalVariableinFilterFunction? Will it be accessible to other function?
If i put int+ g_globalVariable, will it's be 100 or 50 (Macro1 called before Filter function)

Sorry for the noise, but it's a bit unclear for me.

Thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)