Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying node values in textbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00643494
Message ID:
00643603
Vues:
9
>I have a oletree control. The tree control is is populated with various data. If I click on a node, lets say 4 levels in, how can I get the the text value of the nodes that in the path of the currently selected node? For examplle if have clicked on admin, clerical, word processing, person name how would I get these nodes to showup in textbox as maybe something like this: admin\clerical\word processing\person name?
>
>Thanks
>Nick Patel

Nick you can try something like (not tested)
loNode = This.SelectedItem
lcText = ""
do while !isnull(loNode)
  lcText = loNode.text + "\" + lcText
  loNode = loNode.Parent
enddo
HTH
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform