Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Expand treeview
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Expand treeview
Miscellaneous
Thread ID:
00647884
Message ID:
00647884
Views:
38
I am trying to expand my treeview through command button. When the user press the command button, I want the node to expand from a selected point. I have the following code, my only problem is how do I identify the nodekey?

*cmdbuttonexpand
.OleTreeView.nodes(.llnode).expanded = .t.

In my OleTreeView.nodeclick I have the following code:

*OleTreeView.nodeclick()
LPARAMETERS node
WITH thisform
.nodevalue = .OleTreeView.selectedItem.fullpath
.nodevalue = STRTRAN(.nodevalue,'\',' ')
.nodepath = .OleTreeView.selectedItem.fullpath
.llnode = node
ENDWITH

I set the "node" to ".llnode" assuming that is the key, but it dosen't work. Where can I set the nodekey to a property so I can pass it in my expand command or I should say how do find the parameter llnode.

Thanks
Nick Patel
Next
Reply
Map
View

Click here to load this message in the networking platform