Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search for given treeview key
Message
 
To
23/04/2010 01:37:44
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01461655
Message ID:
01461666
Views:
52
This message has been marked as a message which has helped to the initial question of the thread.
>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
l_Ok = .t.
TRY
  oNode = tw.nodes(m.searchedKey)
CATCH
    l_Ok = .f.
ENDTRY
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform