Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange problem with Treeview SelectedItem property
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00812987
Message ID:
00814820
Views:
17
Hi Terry,

>I agree - I think SelectedItem is just an imbedded mostly readonly
>handle. I myself have never thought of it as a property that can be >assigned something.

I think you're mixing up the Treeview.SelectedItem property itself and the object that it references. There's obviously the equivalent of a VFP SelectedItem_Assign in there to prevent users assigning anthing other than a tree.node, .NULL. or .F. to it. But when you access properties and methods of the .SelectedItem you are just accessing the node to which it refers and can manipulate it in exactly the same way as any Tree node.

>I have also had problems with SelectedItem=.NULL.. It seemed to change [for >a while] the node's data type from object to a null!

Is this simply because the .SelectedItem property may be set implicitly (for example by mouseclick) by the treeview itself ?

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform