Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Escape character? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
judetf
Senior Member
Senior Member


Joined: January 23 2008
Online Status: Offline
Posts: 234
Posted: May 09 2008 at 09:50 | IP Logged Quote judetf

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 View judetf's Profile Search for other posts by judetf
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: May 09 2008 at 10:22 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
judetf
Senior Member
Senior Member


Joined: January 23 2008
Online Status: Offline
Posts: 234
Posted: May 09 2008 at 10:28 | IP Logged Quote judetf

Sorry not to include the code. The ph_getglobal_s option worked perfectly. Thanks!

jtf
Back to Top View judetf's Profile Search for other posts by judetf
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum