PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the full path of selected element in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Versions 16 and later
WINDEVWindows Mobile Note: TreeSelect can be used on:
  • a browsing or memory TreeView control, or a TreeView control on source.
  • a single-selection or multi-selection TreeView control. For the multi-selection TreeView controls, TreeSelect must be used in a loop in order to get all selected rows.
New in version 16
WINDEVWindows Mobile Note: TreeSelect can be used on:
  • a browsing or memory TreeView control, or a TreeView control on source.
  • a single-selection or multi-selection TreeView control. For the multi-selection TreeView controls, TreeSelect must be used in a loop in order to get all selected rows.
WINDEVWindows Mobile Note: TreeSelect can be used on:
  • a browsing or memory TreeView control, or a TreeView control on source.
  • a single-selection or multi-selection TreeView control. For the multi-selection TreeView controls, TreeSelect must be used in a loop in order to get all selected rows.
Example
// Full path of selected element in the "TREE_RecipeTV" control
ResPath = TreeSelect(TREE_RecipeTV)
WINDEVWindows Mobile
// Selected rows in a multi-selection memory treeview
FOR i = 1 _TO_ TreeSelectOccurrence(TREE_TREEVIEW1)
Trace("Selected element: " + TreeSelect(TREE_TREEVIEW1, False, i))
END

// Equivalent to:
// i is int
// FOR EACH SELECTED ROW i OF TREE_TREEVIEW1
// Trace("Selected element: " + TreeSelect(TREE_TREEVIEW1, False, i-1))
// END
Syntax
<Result> = TreeSelect(<TreeView Control> [, <Management of Duplicates> [, <Rank>]])
<Result>: Character string
Full path of selected element, in the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
<TreeView Control>: Control name
Name of TreeView control to use.
<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. If this parameter is not specified, the subscript of 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. If this parameter is not specified, the subscript of 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. If this parameter is not specified, the subscript of 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.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment