| Author | 
         | 
         
      
        
         
         GadgetGuy Super User 
          
  
  Joined: June 01 2008 Location: United States
 Online Status: Offline Posts: 942
          | 
        
         
          
           | Posted: January 13 2009 at 22:46 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
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 | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         TonyNo Moderator Group 
          
  
  Joined: December 05 2001 Location: United States
 Online Status: Offline Posts: 2889
          | 
        
         
          
           | Posted: January 13 2009 at 22:59 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Try...
 
 ph_msgbox("INITIALIZE", string( ph_getinsteonlevelrt( "DWN ROOM")), 3)
 
 ph_getinsteonlevelrt returns a double.
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         grif091 Super User 
          
 
  Joined: March 26 2008 Location: United States
 Online Status: Offline Posts: 1357
          | 
        
         
          
           | Posted: January 13 2009 at 23:53 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
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 | 
         
          
         | 
       
       
       
        |   |