VBScript GetPropertyValue for Time-Based Property Not Workin

Having problems? Maybe others have had the same problem too. Post HouseBot technical issues here.
Post Reply
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

VBScript GetPropertyValue for Time-Based Property Not Workin

Post by Osler »

GetPropertyValue("System Time.Time") returns the value correctly.

GetPropertyValue("MyDevice.MyTimeProperty") returns *error*. MyTimeProperty is set to a specific, non-Stock Value.

Osler
ScottBot
Site Admin
Posts: 2787
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: VBScript GetPropertyValue for Time-Based Property Not Workin

Post by ScottBot »

I wasn't able to reproduce this problem. I added a user definable time Property to a Null Device and set it to a variety of different time types. Running the script from a Task seems to return the correct value.

What am I doing different?
Scott
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: VBScript GetPropertyValue for Time-Based Property Not Workin

Post by Osler »

I was using a script device. I worked around it by setting the property to alpha-numeric and then converting the system time to a string to make the comparison.

Osler
Post Reply