LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find element in ActiveX TreeView

I need to access the tree, so I'am able to delete the nodes by name. The way I do it now: Search the whole tree for the label. Is there a way to use that key-thing? I don't know how do use that.

Berndi
0 Kudos
Message 1 of 2
(2,698 Views)
Berndi,

When you add elements to the tree, you can set the key to be the same value as the text of the tree node. Then, when you remove tree elements, you can reference them by key, and input that reference into the "index" input. Please see the attached example.

Also, please keep in mind that if you are using LabVIEW 7.0, there is a new tree control that is very easy to use (and not based on an ActiveX control). Please visit this site for more information on the new tree control in LabVIEW (page 29 of the Upgrade Notes): http://www.ni.com/pdf/manuals/321780e.pdf

I hope this helps!

Liz Fausak
Applications Engineer.
0 Kudos
Message 2 of 2
(2,698 Views)