Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview SelectedItem assignment error
Message
From
01/03/2022 10:50:31
 
 
To
01/03/2022 09:21:17
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01683702
Message ID:
01683704
Views:
44
>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.
Maybe loNode is not a Node :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform