Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView with child nodes
Message
From
07/12/2002 07:39:21
 
 
To
07/12/2002 00:54:01
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00730591
Message ID:
00730611
Views:
13
Hi Mathew.

but How would I go about getting all the child text for that parent node.
LOCAL loNode, lnCnt, lcStr, loChildNode
loNode = Thisform.oTree.SelectedItem
lcStr = ''
IF VARTYPE( loNode ) = 'O'
  lcTitle = 'Child Nodes for ' + loNode.Text
  loChildNode = loNode.Child
  DO WHILE VARTYPE( loChildNode ) = 'O'
    lcStr = lcStr + loChildNode.Text + CHR( 13 ) + CHR( 10 )
    loChildNode = loChildNode.Next
  ENDDO
ELSE
  lcTitle = 'No selected node in the tree'
ENDIF
MESSAGEBOX( lcStr, 64, lcTitle  )
Previous
Reply
Map
View

Click here to load this message in the networking platform