Jump to content
News about the LabVIEW Wiki! Read more... ×
Sign in to follow this  
ParkerJonathan

How to get data out of a tree control

Recommended Posts

27 minutes ago, ParkerJonathan said:

I want to get the string out of a specific cell of a tree control. Why is this so difficult?

Difficult is a subjective term. I find anagrams difficult.

Share this post


Link to post
Share on other sites
5 hours ago, ShaunR said:

I find anagrams difficult

Infilict a diffusing drama.

  • Like 1

Share this post


Link to post
Share on other sites

Because the native tree control API is terrible.

Try something like this, it may make your life easier.

Share this post


Link to post
Share on other sites

Its not so bad, you just need to think of it as a hash table that gets displayed as a tree. I think people get into trouble when they try to think of the tree control as a tree.

Share this post


Link to post
Share on other sites

I think the tree control is a powerfull tool, to be able to leverage this tool you need to spend a bit of time to understand how to use it.

When I first used it I also though it was difficult, now I'd say it is a bit complex.

 

I encourage you to invest some time to master it!

One cool tool you can have a look to see the power of the Tree Control is Ton Plomp's variant probe available on the LAVA Code Repository

Share this post


Link to post
Share on other sites
On 5/25/2018 at 9:15 PM, Neil Pate said:

Because the native tree control API is terrible.

Try something like this, it may make your life easier.

Thanks! this helps me get a 1D array of values in the first column but how about the second?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.