Property Creation

HouseBot Plugin Development Discussions.
Post Reply
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Property Creation

Post by Osler »

Scott:

How does HB handle changing an existing properties IOType? Say I set something as ptAlpha during initial device creation. Then, after some thought, change the code so that when the device is created it creates the aforementioned property (that should already exist in the database as ptAlpha) as ptNumeric. This should only be encountered during debuging by me...but how does HB handle this. Am I trashing my database?

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

Re: Property Creation

Post by ScottBot »

You can only create the property once, and it will set the property type at that time. If you try and create the same property again, regardless of the type, it will fail because it already exists.

If you need to use a different type after you have already created it, you will either need to delete the property using the Device Manager, or just create a new property with a new name and description.
Scott
Post Reply