Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treview - Find root node
Message
 
À
14/03/2009 09:35:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01388033
Message ID:
01388598
Vues:
54
This message has been marked as a message which has helped to the initial question of the thread.
*Optimize at your discretion - Siblings ain't parents
*
local oRoot as object,oNode as object
oNode=myform.myTree.SelectedItem
do while .t.
if type('oNode.Parent.text')==[C]
   oNode=oNode.Parent
else
   oRoot=oNode
   exit
endif 
enddo
Terry
www.r6solutions.com/





>Dear all
>
>If TreeView have multiple root nodes at top level wich then branch down to multiple levels.
>If user click node at the deep end, how do I find root node of that branch.
>I need actually string of that root node as they are all strings.
>
>Any help is greatly appreciated.
>
>TIA
>Sergio
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform