>Hi:
>I'm using the TreeView control to display certain information with the check boxes option activated so users can select them. In some form's methods I had to travel through the nodes collection recursively so I could save the selected nodes into my tables. The problem to do so is that later when I tried to release the form the command doesn't seems to work in any way and the form remains active inside the application desktop. Sometimes I also get a runtime error and have to quit VFP.
>Does anybody knows what is happening or have some experience with this ?
>How deeply can I get into a recursive proccess in VFP ?
>Any help wanted ! and thanks in advance.
>Joe
Joe,
As David said probably your problem is with using for each oVar and not setting oVar to null.
If you use a cursor with your treeview that'd keep node keys and their checked status, you could simply replace status field in nodecheck event. That way you wouldn't need to walk treeview nodes for checked ones but use that cursor.
Cetin