Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show data in treeview in four levels/nodes
Message
From
08/04/2008 14:15:24
 
 
To
08/04/2008 13:58:26
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01308912
Message ID:
01309113
Views:
12
Hi,
>I was able to get it to run properly by adding an ON ERROR *

It a long time since I worked with VFP treeviews but one thing I remember vividly is that this is *not* a good idea. If there's an error then, at best, you're attempting to add a node to a (as yet) non-existent parent and it simple won't show up in the completed treeview. At worst (and this is where I can't remember the exact scenario) you end up with very ugly dangling references.
Regards,
Viv


>
>Try this:
>
>select master
>#define tvwfirst 0
>#define tvwlast 1
>#define tvwnext 2
>#define tvwprevious 3
>#define tvwchild 4
>
>ON ERROR *
>with thisform.oletreeview.nodes
> ...(your code goes here)
>ENDWITH
>
>-RW-
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform