Author |
|
judetf Senior Member
Joined: January 23 2008
Online Status: Offline Posts: 234
|
Posted: May 09 2008 at 09:50 | IP Logged
|
|
|
I am trying to write a macro that creates a timed event to execute a raw formula. I would like the raw formula to evaluate a global variable when the event executes.
What is happening, however, is that the macro itself is evaluating the GV, and the timed event gets static values rather than evaluating the GV at the time the event runs.
Is there a way to escape the GV in the macro so that what gets entered into the timed event raw formula is the dynamic call to the GV?
Thanks
jtf
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 09 2008 at 10:22 | IP Logged
|
|
|
JTF,
Without seeing your actual code, Im not quite sure what is the best way. But, you could (in the macro) build the raw formula with the GV something like:
"{" + "YOUR GV ID" + "}"
which will be put together "after" variable substitution has taken place. Or, you should be able to just use the global variable function, ie: ph_getglobal_s("YOUR GV ID")
HTH,
Dave.
|
Back to Top |
|
|
judetf Senior Member
Joined: January 23 2008
Online Status: Offline Posts: 234
|
Posted: May 09 2008 at 10:28 | IP Logged
|
|
|
Sorry not to include the code. The ph_getglobal_s option worked perfectly. Thanks!
jtf
|
Back to Top |
|
|