Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView control treated recursively
Message
From
20/09/2002 04:43:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/09/2002 11:30:16
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00702291
Message ID:
00702624
Views:
34
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform