Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: ph_setccobjgraphic syntax error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
williammanda
Groupie
Groupie


Joined: December 03 2008
Location: United States
Online Status: Offline
Posts: 84
Posted: January 21 2009 at 19:44 | IP Logged Quote williammanda

Hey
Would someone point out the syntax error for this formula?

Code:
ph_setccobjgraphic ( "MASTERBEDROOM", "GB1N", C:\Program Files\powerhome\web\graphics\buttons\b1red-d_50.gif, ,0)


Event log:

Code:
Syntax Error in Formula: ph_setccobjgraphic ( ~"MASTERBEDROOM~", ~"GB1N~", C:\Program Files\powerhome\web\graphics\buttons\b1red-d_50.gif, ,0)


Here is a copy of the control center via the explorer page.



As you can see the tab id and button id are correct. I'm not sure what to put in the downfile and flag?
Thanks
Back to Top View williammanda's Profile Search for other posts by williammanda
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 21 2009 at 20:44 | IP Logged Quote TonyNo

Unless the forum trashed it, I'd say the missing quotes around the paths...

ph_setccobjgraphic ( "MASTERBEDROOM", "GB1N", "C:\Program Files\powerhome\web\graphics\buttons\b1red-d_50.gif","",0)

downfile is a path to the graphic for the pressed state. I'm not sure if it would be better to just duplicate the first path or leave it null.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
williammanda
Groupie
Groupie


Joined: December 03 2008
Location: United States
Online Status: Offline
Posts: 84
Posted: January 22 2009 at 14:14 | IP Logged Quote williammanda

Thanks
This seems to work OK.

Code:
ph_setccobjgraphic ( "MASTERBEDROOM", "GB1N", "C:\Program Files\powerhome\web\graphics\buttons\b1green-d_50.gif","")
Back to Top View williammanda's Profile Search for other posts by williammanda
 

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