alanstone Posted February 4, 2010 Share Posted February 4, 2010 I'd like to copy the items of a TreeView (one dimensional tree) into another: $itemcount = _GUICtrlTreeView_GetCount($tvOne) MsgBox(0,"","$itemcount: " & $itemcount) ; displays $itemcount: 3 MsgBox(0,"","$tvOne items:" & @CRLF & _GUICtrlTreeView_GetTree($tvOne)) ; ..._GetTree returns nothing !? _GUICtrlTreeView_DeleteAll($tvTwo) _GUICtrlTreeView_BeginUpdate($tvTwo) For $i = 1 to $itemcount _GUICtrlTreeView_Add($tvTwo,0,_GUICtrlTreeView_GetText($tvOne,$i)) Next _GUICtrlTreeView_EndUpdate($tvTwo) But $tvTwo is still empty, although $itemcount = 3 (but _GUICtrlTreeView_GetTree($tvOne)returns nothing) What's missing ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now