From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tree population from file

Solved!
Go to solution

Hi everyone,

 

I'm writing the UI code of a test system and I'm archieving the project and test data in the files that's already been created at the start of the program.

 

So I have a pattern such that folders with project names and test files inside them with corresponding order.

 

e.g.

 

Project1

          Test1

           Test2

Project2

          Test1

          Test2

 

The problem is I cannot find a way to populate a tree with that order programmatically, by taking the names of the folders, files etc...

 

Thank you

 

 

0 Kudos
Message 1 of 3
(2,883 Views)
Solution
Accepted by topic author Ademirel

-If the folders are already exisiting and if you just need to populate and display, check this example:

Displaying Directory Hierarchy with the Tree Control

-If you have to create folders then there's an example Tree control to file directory

Thanks
uday
Message 2 of 3
(2,870 Views)

Thank you so much, it was really helpful

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