Incrementing a time veriable

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
kbosscawen
Member
Posts: 71
Joined: Thu Jul 03, 2003 8:53 am
Location: Raleigh, NC
Contact:

Incrementing a time veriable

Post by kbosscawen »

I'm trying to create a theme that has a time property that I'd like to increment/decrement by :30 minute intervals if a button is pressed. I've tried all kinds of combinations for the button's property change value (+= Minutes=30, +=:30, %Object.Property% + Minutes=30, +=1800, etc.), but can't seem to get it right. Is there a way I can do this? Am I using incorrect syntax?



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

Post by ScottBot »

The += and -= operators used in setting the "Value" on a button control only work with straight numeric values.



To do this, you may need to write a simple VB Script using the "Script Device". The button on the remote will set the State of the Script Device to Running. This will start the script where you will have more control over setting the Property Value using VB.



Scott
Post Reply