I'm using VFP 6.0, Win98. I need to search through those same level nodes in a TreeView control, my code is as below:
********
With Thisform
lnNodes=.oleTree1.nodes("ROOT").children
loNode=.oleTree1.nodes("ROOT").child
for x = 1 to lnNodes
lcCatKey=loNode.key
if lcCatKey==lcCatCode
lbKeyExist=.t.
exit
endif
loNode=loNode.next
endfor
EndWith
********
When finished comparing for all nodes, the form contained the TreeView control refuse to close. I'm quite sure this is cause by reassign of Treeview reference variable (loNode). Any ideas, please help, please....
Thanks in Advance.