Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting TreeView Nodes
Message
From
02/09/1999 04:04:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00260196
Message ID:
00260491
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform