Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting TreeView Nodes
Message
De
02/09/1999 04:04:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00260196
Message ID:
00260491
Vues:
15
>Does anyone know the syntax for looping through
>all of the child nodes of a given node.
>
>According to the help, the Child property returns
>a referenece to the FIRST>child of a node object
>
>What if a node had 5 children? How would I loop
>and get a reference to each of the 5 child nodes?
>LPARAMETERS node WITH this If node.Children > 0 activate screen ? Node.Child.Text lnIndex = Node.Child.Index do while lnIndex # Node.Child.LastSibling.Index ? .Nodes(lnIndex).Next.Text lnIndex = .Nodes(lnIndex).Next.Index enddo EndIf endwithCetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform