ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Checks the existence of an element in a TreeView control and returns its type (node or leaf) if the element exists.
Example of TreeView control:
Vocabulary linked to a TreeView control
Example
// Type de l'élément "Desserts" dans le champ Arbre "ARBRE_RecetteTV"
Res = TreeTypeItem(ARBRE_RecetteTV, "Recettes" + TAB + "Desserts")
SWITCH Res 
	CASE tvError : Info("Elément inexistant")
	CASE tvLeaf : Info("L'élément est une feuille")
	CASE tvNode : Info("L'élément est un noeud")
END
Syntax
<Result> = TreeTypeItem(<TreeView control> , <Element path>)
<Result>: Constant
Constant used to identify the type of element:
tvErrorThe specified element does not exist.
tvLeafThe specified element is a leaf.
tvNodeThe specified element is a node.
<TreeView control>: Control name
Name of the TreeView control to be used.
<Element path>: Character string
Full path of the element to be used. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
If there are two elements with the same name in the path, you can add the IDs of the elements (after their names using TreeID).
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help