General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only