PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
TreeView Control - Getting the selected leaf
TreeView Control - Getting the selected leaf
Started by GFreire, Oct., 09 2024 1:56 PM - 1 reply
Connect yourself…
GFreire
#1
Registered member
2 messages
Posted on October, 09 2024 - 1:56 PM
After a lot of testing i'm having trouble getting the selected leaf from a TreeView control on WEBDEV26.
I can get the full path to the leaf with
Info
(
TreeSelect
(
TREE_MyTree
)
)
However, TreeIdentifier returns a blank value with the code below, as do most functions where i try to use TreeSelect(TREE_MyTree) as the path to the clicked item.
Info
(
"The Index is: "
+
TreeIdentifier
(
TREE_MyTree
,
TreeSelect
(
TREE_MyTree
)
)
)
What i am looking for is a function that returns the visible value of the Leaf or Node as a string. If there is another way to get this end result i can work with it.
Report
0
0
GFreire
#2
Registered member
2 messages
Posted on October, 10 2024 - 6:03 PM
I ended up using a workaround with ExtractString().
For those in a similar situation to mine i leave the code below:
MyPath
is string
=
TreeSelect
(
TREE_MyTree
)
Leaf
is string
=
ExtractString
(
MyPath
,
WordCount
(
MyPath
)
,
TAB
)
//Leaf outputs the string from the tree item that has been clicked clicked, wether it's a leaf or a node
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WINDEV 2024
WEBDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WINDEV (earlier versions)
WINDEV 26
WINDEV 2025
WINDEV 2024
WINDEV 25
WEBDEV 2025
WEBDEV 2024
WINDEV Mobile 2025
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text