I used to have a script that was able to sucessfully read the data from a TreeView, but somehow this list was changed, and while I am still able to set the cursor on the desired line, and read the number of items in the list, executing "GetText" will always come back empty, and sets @error to 1:
Another thing that seems to be strange is that if I select line #2, which looks like it has sub-items, the "GetSubItemCount" command will return 0, and sets @error to 1.
; "GetItemCount" returns the correct count: $count = ControlTreeView($title,"",$treeID,"GetItemCount") ; "Select" activates the correct line ControlTreeView($title,"",$treeID,"Select","#4") ; But none of these variations return anything but an error $text = ControlTreeView($title,"",$treeID,"GetText") $text = ControlTreeView($title,"",$treeID,"GetText",4) $text = ControlTreeView($title,"",$treeID,"GetText",4,0) $text = ControlTreeView($title,"",$treeID,"GetText","") $text = ControlTreeView($title,"",$treeID,"GetText","#4") $text = ControlTreeView($title,"",$treeID,"GetText","#4","")
Another thing that seems to be strange is that if I select line #2, which looks like it has sub-items, the "GetSubItemCount" command will return 0, and sets @error to 1.