Click to See Complete Forum and Search --> : tree view


podulator
September 5th, 2001, 05:18 PM
ANyone tell me a quick way of iterating through all nodes of a tree view looking for a key.

Many thanx.
mat

Cakkie
September 6th, 2001, 01:44 AM
If you can use the index to just get the node, or loop through it using for each

Dim N as Node
set N = Treeview1.Nodes("Somekey")

for Each N In Treeview1.Nodes
Debug.print N.Key
next N




Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

podulator
September 6th, 2001, 03:36 PM
thanx tom :-)