Link to home
Start Free TrialLog in
Avatar of DPomeroy
DPomeroy

asked on

Treeview items

I have a file of strings like c:\acad\j\loop\unit-30.  I would like to build a tree from them without duplicating any nodes. The first node would be "c:", the second would be "acad" and so on.  The next string would be "c:\acad\j\loop\unit-31".  I don't want to have another level 1 node of "c:", In this case I would just like to add "unit-31" to the loop node as a child.
ASKER CERTIFIED SOLUTION
Avatar of mheacock
mheacock

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DPomeroy
DPomeroy

ASKER

I can't figure out how to do the compare.  Do I you something like this.  If CurrentSubdirectory (c:) <> treeview1.node.text then addchild(CurrentSubdirectory)?  I still can't figure out how to access the properties of the class and what properties there are.  Also I can't figure out how to do the methods and I think I should be able to make a new class and add some more properties and methods.