Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nodes order in treeview
Message
 
À
16/10/2000 07:05:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00428492
Message ID:
00429787
Vues:
17
In most cases (or at least in my cases), the treview simply provides a pointer to table data. I typically store the table key (or some facimile) in the treeview's KEY proporty during the add method. When the user clicks a particular node, the length of the key may help signify it's place in the hielarchy, ex: A root node would have a 'shorter' key than a child node, a child may have a shorter len(KEY) than a grandchild, and so on. It may be helpful to what your doing to read, or store raw data (from) to a table or cursor, and simply use the tree view to reference the table. In this case, your solution would print from the table, rather than the nodes text reference.


>>Try this, it will work with any three tier treeview.Include form name and tree view name are part of the with statement.
>>You can run it as prg while the form is running (providing your form is modeless), or paste it into a method and call it from control event.
>
>Hi Terry,
>
>Thanks for the code but I do not know how many levels the tree would at the later stage as the user can go on add the nodes. So, the fixed 3 tier treeview code would not work.
>
>However, I changed the pointer reference to direct reference everytime and the problem has been solved. Thanks
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform