How/When does a set of values in an alphalist clear
-
- Advanced Member
- Posts: 206
- Joined: Tue Oct 07, 2003 10:01 am
- Location: Columbus, OH
- Contact:
How/When does a set of values in an alphalist clear
How?when? does a list of values get cleared in an alphalist property. Does this happen automatically if I re-populate the values or is there a function that allows me to clear it directly. You obviously do this in the TV listing device. I am noodling through the design of a JukeBot device and re-setting the values in an alphalist property is a major requirement.
Ooops. I guess I lost track of this message.
I assume that the question is relating to using the Device SDK to manage the Property Value. If not, this answer is going to be way off.
The TV Listing Device uses Dynamic AlphaList Properties to store the channel and program lists. Dynamic Properties are a bit different from standard Properties in that their values are maintained by the Device, and not the HouseBot server.
If you look through the Device SDK, you will see a few methods/callbacks for managing dynamic lists.
Hope this helps,
Scott

I assume that the question is relating to using the Device SDK to manage the Property Value. If not, this answer is going to be way off.
The TV Listing Device uses Dynamic AlphaList Properties to store the channel and program lists. Dynamic Properties are a bit different from standard Properties in that their values are maintained by the Device, and not the HouseBot server.
If you look through the Device SDK, you will see a few methods/callbacks for managing dynamic lists.
- CPropertyValue::ClearArrayPropertyValue() - is the method that will clear the entire list.
- CPropertyValue::AddArrayPropertyValue() - will add an item to the end of the list.
- CPropertyValue::GetArrayPropertyValueAsStringAtIndex() - will return a single item from the list.
Hope this helps,
Scott
Scott, you provide excellent help for your HouseBot users on this forum. I know everyone appreciate all your work. But, we also know that the more time you spend on this forum the less time you have to develop code. As the number of HB users grows it could take more and more of your time to support the software. Have you considered setting up a Wiki to post some of the great procedures and tips you normally post to this forum?ScottBot wrote:When adding items to the list, there are some not-so-documented tricks for defining multiple columns in the list and for specifiying the selected item. If you search the forums, I've provided this information before. I can dig it up for you again, when you get to that point.
It may not be as collaborative as a wiki, but my hope is that this forum could be host to discussions and tips from myself and others. If/when the support load becomes a burden, I'll probably step back a bit from the forums and let others get a word in (I realize that I don't give anyone else a chance to respond sometimes). At that time, hopefully, there will be a user-base that is large enough to offer a wide variety of help to others.Automate wrote:Have you considered setting up a Wiki to post some of the great procedures and tips you normally post to this forum?
Scott