LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting tag of selected item in a treecontrol

I want to get the currently selected (highlighted) item (actually it's tag) in a tree control at run time.  How?
0 Kudos
Message 1 of 3
(2,812 Views)
Hi, Pake.

I found a KnowledgeBase that includes an example of some code that does exactly that. Good luck!
Sarah K.
Search PME
National Instruments
0 Kudos
Message 2 of 3
(2,800 Views)

Hmm, to get the selected tag, all you need to do is read the value from the control terminal, since the currently selected value of a tree control *is* its tag.  You could alternatively read from a local variable.  If you needed to get the value in a subVI, you could wire a Control Reference into the subVI and read the Value property.

-D

0 Kudos
Message 3 of 3
(2,796 Views)