How/When does a set of values in an alphalist clear

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
Circe640
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

Post by Circe640 »

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.
ScottBot
Site Admin
Posts: 2806
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

I'm out of town right now, and can't remember off of the top of my head. I'll let you know in a few days.



Scott
Circe640
Advanced Member
Posts: 206
Joined: Tue Oct 07, 2003 10:01 am
Location: Columbus, OH
Contact:

Bump

Post by Circe640 »

When you have a chance?
ScottBot
Site Admin
Posts: 2806
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

Ooops. I guess I lost track of this message. :oops:



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.
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.



Hope this helps,

Scott
Automate

Post by Automate »

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.
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
Site Admin
Posts: 2806
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

Automate wrote:Have you considered setting up a Wiki to post some of the great procedures and tips you normally post to this forum?
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.



Scott
Post Reply