Hi all
I now have a treeview with all nodes expanded and I want to traverse the
tree from top to bottom, node-by-node in the order in which they are
displayed.
I want to be able to do this without reference to the nodes' keys ir
index values - IOW a completely generic solution which will work with
any treeview regardless of the data it contains.
The only caveats are that any given node in the treeview may or may not
have children and may or may not have siblings.
Because I want a generic solution it should only use node properties
like children, child, parent, next, previous, firstsibling, lastsibling
and root.
The idea is to call a form method (WalkTree) with the first/top/root
node as parameter. WalkTree will need to be recursive but I am having
trouble with getting a correctly working implementation. Any help would
therefore be highly appreciated.
Tx
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.