PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Versions 16 and later
WINDEV Remark: <TreeView>.Select can be used on:
  • a TreeView control populated programmatically, based on a data file, or based on a variable.
  • a single-selection or multi-selection TreeView control.. For multi-selection TreeView controls, <TreeView>.Select must be used in a loop in order to get all selected rows.
New in version 16
WINDEV Remark: <TreeView>.Select can be used on:
  • a TreeView control populated programmatically, based on a data file, or based on a variable.
  • a single-selection or multi-selection TreeView control.. For multi-selection TreeView controls, <TreeView>.Select must be used in a loop in order to get all selected rows.
WINDEV Remark: <TreeView>.Select can be used on:
  • a TreeView control populated programmatically, based on a data file, or based on a variable.
  • a single-selection or multi-selection TreeView control.. For multi-selection TreeView controls, <TreeView>.Select must be used in a loop in order to get all selected rows.
Example
// Full path of selected element in the "TREE_TVRecipe" TreeView control
ResPath = TREE_TVRecipe.Select()
WINDEV
// Selected rows in a multi-selection TreeView Table control populated programmatically
FOR i = 1 _TO_ TREE_TREE1.SelectOccurrence()
Trace("Selected element: " + TREE_TREE1.Select(False, i))
END
 
// Equivalent to:
// i is int
// FOR EACH SELECTED ROW i OF TREE_TREE1
// Trace("Selected element: " + TREE_TREE1.Select(False, i-1))
// END
Syntax
<Result> = <TreeView control>.Select([<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:
WEBDEV - Browser code This parameter is not supported.
Java This parameter is ignored.
<Rank>: Optional integer
Versions 16 and later
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.
WEBDEV - Server codeWEBDEV - Browser codeAjax This parameter is not supported.
Java This parameter is not supported.
New in version 16
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.
WEBDEV - Server codeWEBDEV - Browser codeAjax This parameter is not supported.
Java This parameter is not supported.
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.
WEBDEV - Server codeWEBDEV - Browser codeAjax This parameter is not supported.
Java This parameter is not supported.
Related Examples:
The TreeView control Unit examples (WINDEV): The TreeView control
[ + ] Using the TreeView control via the WLanguage Tree functions.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment