Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview SelectedItem assignment error
Message
From
01/03/2022 11:55:12
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01683702
Message ID:
01683706
Views:
42
>>Several tools in Thor use the TreeView control, but when opened they report an error when a line of .oTree.SelectedItem = loNode (or something similar) is encountered. It appears that the SelectedItem property is read-only. I think I may have the wrong version of the COM object installed. But every means I have investigated indicates it is the most current.
>>
>>Any suggestions would be welcome.
>>
>>P.S.
>>I can fix the problem by selecting the Treeview node itself. Then the SelectedItem property will be as expected. But I prefer not to have to edit the Thor tools source code.
>>
>>Thanks in nadvance.
>
>SelectedItem is not readonly property.

I'm sorry, but it is on my machine. That is why I suspect it may be a version of the COM object. Error occurs when I try to launch the Project Explorer from Thor. But also occurs when launching the PEMeditor too.
I can fix the problem if I modify the program by commenting out the SelectedItem assignment line and add a loNode.Selected = .T. line. But I rather not make any modification if don't have to.



>Maybe loNode is not a Node :-)
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform