Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search for given treeview key
Message
From
23/04/2010 01:37:44
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Search for given treeview key
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01461655
Message ID:
01461655
Views:
101
Hello Everybody

What is best/fastes way to check a treeview structure for a given node key.
I do:
l_ok = .F.
For i = 1 to tw.nodes.count
	if tw.nodes(i).key = searchedKey
		l_ok = .T.
		exit
	endif
endfor
I think, that there must be a more elegant way?

Any help welcomed.

Best regards
Albert
Next
Reply
Map
View

Click here to load this message in the networking platform