Author |
|
williammanda Groupie

Joined: December 03 2008 Location: United States
Online Status: Offline Posts: 84
|
Posted: January 24 2009 at 12:59 | IP Logged
|
|
|
What symbol is used for a comment? During my learning curve I would like to comment out portions of the formula while testing. Using this example please post the comment symbol around a function.
Code:
if(ph_getinsteonlevel ( "MBLIGHT" )=0,ph_setccobjtext ( "MASTERBEDROOM","ST1F","Light Off" ) + ph_setccobjgraphic ( "MASTERBEDROOM", "GB1N", "C:\Program Files\powerhome\web\graphics\buttons\b1red-d_50.gif",""),ph_ setccobjgraphic ( "MASTERBEDROOM", "GB1N", "C:\Program Files\powerhome\web\graphics\buttons\b1green-d_50.gif" + ph_setccobjtext ( "MASTERBEDROOM","ST1N","Light On" ),"")) |
|
|
Thanks
|
Back to Top |
|
|
TonyNo Moderator Group


Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 24 2009 at 20:18 | IP Logged
|
|
|
I don't believe that there is one. If this is in a macro, you can make a Comment line, but that's about it.
|
Back to Top |
|
|
williammanda Groupie

Joined: December 03 2008 Location: United States
Online Status: Offline Posts: 84
|
Posted: January 24 2009 at 20:57 | IP Logged
|
|
|
How would I make a comment / remark so I wouldn't have to delete my existing information?
Thanks
|
Back to Top |
|
|
BeachBum Super User


Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: January 25 2009 at 00:15 | IP Logged
|
|
|
Tony was referring to a command line you would select in the line before the macro. As far as I know there is no way to comment a line within a macro.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
dhoward Admin Group


Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 25 2009 at 00:51 | IP Logged
|
|
|
A couple of different ways. Within a macro, you of course have the "Comment" command. You can also effectively comment out a line by placing a check in the "Skip" box. From within a formula, you can use the comment tags /* and */. You can also use // to comment out everything to the end of the line. The formula below will demonstrate these last two methods:
(5 + 10) /*Comment*/ / 3 //Another Comment
The result of this if evaluated will be 5.
HTH,
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group


Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 25 2009 at 08:57 | IP Logged
|
|
|
Wow. I bet that has been in there since the beginning, eh?
|
Back to Top |
|
|
BeachBum Super User


Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: January 25 2009 at 09:25 | IP Logged
|
|
|
Damn, just like the old days… Sure makes Formula building a lot easier. Beats Cutting parts out to find the culprit.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
williammanda Groupie

Joined: December 03 2008 Location: United States
Online Status: Offline Posts: 84
|
Posted: January 25 2009 at 09:35 | IP Logged
|
|
|
Thanks Dave!
|
Back to Top |
|
|