Page 1 of 1

VBScript GetPropertyValue for Time-Based Property Not Workin

Posted: Fri Nov 28, 2008 3:05 pm
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

Re: VBScript GetPropertyValue for Time-Based Property Not Workin

Posted: Tue Dec 02, 2008 1:15 pm
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?

Re: VBScript GetPropertyValue for Time-Based Property Not Workin

Posted: Wed Dec 10, 2008 2:02 pm
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