Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Node Indexing in TreeView
Message
From
06/06/2001 08:23:03
 
 
To
06/06/2001 07:00:30
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00515621
Message ID:
00515649
Views:
14
You're close! The Add method will return a reference to the node. See additions to your code in bold. I'm not sure if that will work because the node you just created doesn't contain any children, but I haven't ran into that situation before.
Select CurNodes
Go     Top

Scan

   <b>oNewNode = </b>ThisForm.trvTreeView.Nodes.Add (cRelative, 4, cNodeKey, cText, nImage)

   If cNodeType = "s"
      <b>oNewNode.Expanded = .T.</b>
   endif

   .....

EndScan

ThisForm.trvTreeView.Nodes (1).Expanded = .T.
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform