Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set item in treeview
Message
 
À
28/07/2014 22:38:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Oracle
Application:
Web
Divers
Thread ID:
01604850
Message ID:
01604907
Vues:
55
>After treeview is loaded I would like to set the node from a value of database.
>
>I have tried thisform.oletreeview.Nodes(Thisform.txtcd_servico.Value).key = 'P'+LTRIM(STR(Thisform.txtcd_servico.Value)), but doesn't work.


I am not sure if I understand what are you trying to do, your code should work, providing that 'P'+LTRIM(STR(Thisform.txtcd_servico.Value)) is unique (there can be only one node with a given key), but it won't change the tree itself, you are going to still see the same representation of it, if you want to change the displayed text then the property to change is Text
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform