General information
Category:
ActiveX controls in VFP
Title:
Treeview Control will not release
I cannot close a form (child) after looping through my treeview nodes for a search. If I open the treeview form and do not search (loop) through it, it closes without problem.
This part of my search loop code is what causes the problem:
If ThisForm.oleTree.Nodes.Count > 0
For Each loNode In ThisForm.oleTree.Nodes
lonode.selected = .f.
lonode.checked = .f.
m.nodecounter = lonode.index
EndFor
note: the search code would be below, but through debugging, this code is all it takes to cause the problem.
Endif
Here is my form.destroy code:
wait window ' One Moment Please ....' nowait
Thisform.oletree.nodes.clear
I have spent 2 days trying to fix this with no success. Can anyone please help???
THANK YOU!!!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only