PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Identifier in Treeview
Identifier in Treeview
Débuté par Leon Backes, 01 mai 2003 15:56 - 1 réponse
Posté le 01 mai 2003 - 15:56
Is it possible to read out the identifier of an element in a treeview without
making the selection on its path. This because there are more elements with
the same path


Regards,

Leon
Posté le 16 mai 2003 - 20:13
I've written an set of class objects relating to tree controls and had similar
problems. The only way to access a particular node is by its display name
which is unfortunate if you have duplicates. One possible work around (maybe)
relies on the fact that the tree view won't be updated while your code is
executing. Use the TreeGiveChild to iterate through the duplicate names,
and change each one to some temporary unique name. After you change each
one, you can look to see if it has the right identifier. If so, do your
thing to it and then change the names back. Good Luck


"Leon Backes" <backes@ilc-europe.nl> wrote:

Is it possible to read out the identifier of an element in a treeview without
making the selection on its path. This because there are more elements with
the same path


Regards,

Leon