Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search for given treeview key
Message
 
À
23/04/2010 01:37:44
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01461655
Message ID:
01461666
Vues:
51
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform