Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Comment symbol 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 24 2009 at 12:59 | IP Logged Quote williammanda

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 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 24 2009 at 20:18 | IP Logged Quote TonyNo

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 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 24 2009 at 20:57 | IP Logged Quote williammanda

How would I make a comment / remark so I wouldn't have to delete my existing information?
Thanks
Back to Top View williammanda's Profile Search for other posts by williammanda
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: January 25 2009 at 00:15 | IP Logged Quote BeachBum

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

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 25 2009 at 00:51 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 25 2009 at 08:57 | IP Logged Quote TonyNo

Wow. I bet that has been in there since the beginning, eh?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: January 25 2009 at 09:25 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 
williammanda
Groupie
Groupie


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

Thanks Dave!
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