Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00536250
Message ID:
00536374
Vues:
8
>Hi!
>To find a node by text:
>
>for each x in thisform.olecontrol1.nodes
>   if x.text = 'value_to_search'
>      messagebox(x.key)   && Do something with node
>   endif
>endfor
>
>
>>How can I seek a value in the treeview.

Alexander,

I tried that once, and I got several errors. I posted a thread and Cetin helped me. He told me that there are some situations where FOR EACH doesn't work with ActiveX controls. So I started using FOR COUNTER = 1 TO TVIEW.NODES.COUNT accessing the items by TVIEW.Nodes(COUNTER). Works fine.

:)

Alonso
Like Frank said: "I did it... MY WAY!"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform