06-04-2009 11:40 AM
I have a list of names. Based on the name I want to add a number in the same row but in a different column. I am using a tree control, I cannot use a table for other reasons. I want it set up like so.
Name Unit Time
Carol Ohm
Callie V
Susie mV
So I search for the name Callie and when it finds it, put the time in. This is a lot harder than it seems. I tried using the GetTreeItem() function. I am at a dead end.
06-04-2009 05:01 PM
06-05-2009 12:12 PM
By the way, whenever you only want to do a simple search on a tree control, as in this example, and you don't care about starting points, direction, descendants vs. siblings, and all that other stuff that makes GetTreeItem complicated, you always have the option to use GetIndexFromValue instead. This is true for pretty much all the list functions -- they can also be used with tree controls for simple tasks.
Luis
06-05-2009 12:29 PM
Actually, you should ignore my previous post. I just realized that GetIndexFromValue searches the value associated with the tree item, which is not the same thing as the item label. So in this case, there really is no alternative to GetTreeItem. Sorry about that.
Luis