General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only