Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: How to call custom formula? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
pingmustard
Newbie
Newbie


Joined: September 13 2010
Online Status: Offline
Posts: 18
Posted: September 23 2012 at 02:27 | IP Logged Quote pingmustard

Could someone help with a noob question here...   I tried creating a formula called with id "REFRESH_LOGS".   The function just sets some global and deletes some old file.   I'm able to Right click > Play to test formula and the log files are refreshed as expected.

Inside the PH Multi-Editor, I'm trying to manually call this formula... all the below has failed me.   Can someone shed some light how formulas are suppose to be called?

Thanks!

Failed lines w/ SYNTAX ERROR:

REFRESH_LOGS()
REFRESH_LOGS
ph_formula("REFRESH_LOGS()")
ph_formula("REFRESH_LOGS")


Back to Top View pingmustard's Profile Search for other posts by pingmustard
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: September 23 2012 at 07:52 | IP Logged Quote grif091

ph_formulabtn("TURNONICON")

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
pingmustard
Newbie
Newbie


Joined: September 13 2010
Online Status: Offline
Posts: 18
Posted: September 23 2012 at 18:25 | IP Logged Quote pingmustard

ph_formulabtn did the job! Thanks!

Was there some special meaning to "btn", my first thought was button, which was probably why I overlooked this routine :)
Back to Top View pingmustard's Profile Search for other posts by pingmustard
 

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