Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The problem about seek nodes in treeview
Message
De
08/09/2002 23:30:13
Eugene Kolmakov
Millennium Technologies
Vladivostok, Russie
 
 
À
08/09/2002 23:07:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00698114
Message ID:
00698133
Vues:
21
The following line looks strange to me:
loNode=loOleTree.Nodes.Add(,2, Category_ID, Category_Name,"CloseBook","OpenBook")

Why do you use "2" as Relation as you haven't parent node?

Better use this:
loNode=loOleTree.Nodes.Add(,, Category_ID, Category_Name,"CloseBook","OpenBook")

And one more thing: while working with TreeView I faced one problem. It didn't work with my keys untill I've added the "_" sign to the end of my keys. The keys were 100% unique but it just didn't work ! Maybe this fact can help you further. And I hope your keys are Strings !!!
Also don't forget that parent node should be already added to treeview before you add the child node.
Eugene
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform