Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: ph_msgbox failure Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 13 2009 at 22:46 | IP Logged Quote GadgetGuy

OK. I'm stumped. I've been fighting a code failure for half a day and tracked it down to the following:
ph_msgbox("INITIALIZE","ph_getinsteonlevelrt("DWN ROOM")",3)

If I play:
ph_getinsteonlevelrt("DWN ROOM")

it works correctly and if I play:
ph_msgbox("INITIALIZE","text",3)
it works correctly.

I've tried:
ph_msgbox("INITIALIZE","ph_getinsteonlevelrt("DWN ROOM")",3) and

ph_msgbox("INITIALIZE",ph_getinsteonlevelrt("DWN ROOM"),3) [no quotes on 2nd parameter]

all to no avail. They all fail. BTW "DWN ROOM" is a valid DVC NAME (I tried others just to make sure anyway)

Anybody see why, or is this a bug? Sheesh. So far wasted about 3 hours on this one!


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 13 2009 at 22:59 | IP Logged Quote TonyNo

Try...

ph_msgbox("INITIALIZE", string( ph_getinsteonlevelrt( "DWN ROOM")), 3)

ph_getinsteonlevelrt returns a double.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: January 13 2009 at 23:53 | IP Logged Quote grif091

You cannot put a double quoted string inside a double quoted string. Use single quotes around the embedded string. I did not try your statement. Just noting that a double quoted string cannot have an embedded double quoted string.

ph_msgbox("INITIALIZE","ph_getinsteonlevelrt('DWN ROOM')",3)

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

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