Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show data in treeview in four levels/nodes
Message
De
08/04/2008 14:15:24
 
 
À
08/04/2008 13:58:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01308912
Message ID:
01309113
Vues:
13
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-
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform