| || |
Retreiving nodes from tree views
I am currently testing a C# application using VBScript. What I need to do is get the number of nodes and there associated text from a tree view. I have tried a number of different things using recursive functions to pass in node collections but can't quite get what i'm after. Any ideas or code?
Re: Retreiving nodes from tree views
You can get the number of root nodes of the TreeView control by using the wRootItemCount property.
If you want to get captions of these nodes, you can use the wRootItem property.
To get the number of child items of the currently selected node and their captions, you can use the wItemCount and wItem properties. Please see the "Win32ListView Object" help topic for more information.