Page 1 of 1

Property Creation

Posted: Mon Mar 01, 2010 12:49 pm
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

Re: Property Creation

Posted: Mon Mar 01, 2010 1:38 pm
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.