Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Node Indexing in TreeView
Message
From
06/06/2001 07:00:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Node Indexing in TreeView
Miscellaneous
Thread ID:
00515621
Message ID:
00515621
Views:
38
Hi,

I have a treeview control in a form. In the form's method where I populate it, when certain condition becomes true (during the add loop), I want to have that node expanded. How can I reference the last node added index in order to set its expanded property to true?
Select CurNodes
Go     Top

Scan

   ThisForm.trvTreeView.Nodes.Add (cRelative, 4, cNodeKey, cText, nImage)

   If cNodeType = "s"
      ThisForm.trvTreeView.Nodes ( ? ).Expanded = .T.
   endif

   .....

EndScan

ThisForm.trvTreeView.Nodes (1).Expanded = .T.
Thanks,

Fernando
Next
Reply
Map
View

Click here to load this message in the networking platform