Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get the child nodes of a selected root node?
Message
From
27/11/2006 06:40:16
 
 
To
27/11/2006 02:51:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01172565
Message ID:
01172604
Views:
15
How can I get the child nodes of a selected root node?

Assuming that you have an object reference to the parent node:
*** Process all the child nodes
lnChildren = toNode.Children
IF lnChildren > 0
  loChild = Thisform.oTree.Nodes( Thisform.oTree.Nodes( toNode.Key ).Child )
  DO WHILE VARTYPE( loChild ) = [O]
    *** Do something with the child node
    *** And get the next child
    loChild=loChild.Next
  ENDDO
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform