Hi Paul My Web Site Guy has written something like this for the company he works for. It has been written in Dot Net so may need a little bit of interpreting. He has promised to e-mail it tomorrow, so as long as he doesn't forget and I have to remind him I should be able to forward it onto you tomorrow. E-mail me at [EMAIL PROTECTED] and I will forward to that address.
Cheers Peter PETER HART COMPUTERS -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Newton Sent: 08 October 2006 09:31 To: ProFox Subject: Walk the treeview 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 [excessive quoting removed by server] _______________________________________________ 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.

