LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the first level entries in a tree control

I'm using the tree control and I while I can get the value of a item that is clicked on; I'd like to get the parent node as well.
 
 
Example:
     +A
            B
            C
     +D
            E
            F
 
If I click on C, I'd like to be able to get C and A.
 
Thanks
Chuck
0 Kudos
Message 1 of 4
(2,614 Views)

By the way, I forgot to mention I'm using Labview 7.0

 

 

0 Kudos
Message 2 of 4
(2,613 Views)

You can use the Get Path method of the Tree Control to get an array of tags, where the tags give you the path down to the specified tag.  Let me know if you need more information (note the screenshot was taken with 8.2...the method might have a slightly different name in 7.0, I don't exactly remember).

-D

Message Edited by Darren on 10-25-2006 03:13 PM

0 Kudos
Message 3 of 4
(2,611 Views)

Awesome dude.  Figured it out.

Thanks

Chuck

0 Kudos
Message 4 of 4
(2,602 Views)