ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the full path of the selected element in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Example
// Full path of the selected element in the "TREE_TVRecipe" TreeView control
ResPath = TreeSelect(TREE_TVRecipe)
Syntax
<Result> = TreeSelect(<TreeView control> [, <Management of duplicates> [, <Rank>]])
<Result>: Character string
Full path of the selected element, in the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
<TreeView control>: Control name
Name of the TreeView control to be used.
<Management of duplicates>: Optional boolean
Mode for managing duplicates in the elements:
<Rank>: Optional integer
Rank of the selection for a multi-selection TreeView control. If this parameter is not specified, the index of the first selected row is returned.
For example, to retrieve the first selected element, <Rank> = 1.
To retrieve the second selected element, <Rank> = 2, etc.
Related Examples:
The TreeView control Unit examples (WINDEV): The TreeView control
[ + ] Using the TreeView control via the WLanguage Tree functions.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/04/2023

Send a report | Local help