Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview Control will not release
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 2.x
Database:
Visual FoxPro
Divers
Thread ID:
01002257
Message ID:
01002774
Vues:
19
You don't need to clear the treeview [i think] before you close the form. It will go away on it's own.

If the treeview has focus when it bugs out, set it back to a parent (preferably the child form's parent) form object.

In your loop you could make it simpler - there have been some issues with the "for each" construct - cannot recall my source for that.
oTree=thisform.oletree
for c=1 to oTree.nodes.Count
with oTree.Nodes(c)
store .f. to .selected,.checked
endwith
endfor
>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!!!
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform