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