This sounds like a typical application for a recursive procedure that walks the child nodes of a given node. If you have a limited amount of items and are using VFP9, you can use increase the STACKSIZE parameter in your config.fpw file. It's a shame that the fox is not better suited for recursivity.
Good luck! Eyvind. -----Opprinnelig melding----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Paul Newton Sendt: 7. oktober 2006 23:22 Til: ProFox Emne: 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.

