Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ms treeview control
Message
From
25/05/1998 09:20:27
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00101517
Message ID:
00101642
Views:
22
I just found the answer.
I should have use
o=thisForm.treeviewcontrol
keyofparent=o.selecteditem.Parent.Key
Thanks!


>In the click(), a reference to the currently selected node is passed. So, in the
>click, you could have code like this:
>
>Lparameters node
>
>selectedkey = node.key
>
>To get a reference to the parent, you could do this:
>
>parentkey = node.parent.key
>
>If a parent does not exist, an ole error will be surfaced. So, you will need to make code like this a bit more robust, as follows:
>
>If Type("node.Parent.index") = "N" && a parent does exist
>Else
> */ no parent exists
>Endif
If you have a chance to visit Korea, Be my Guest.
rexall
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform