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
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 of "Desserts" element in the "TREE_RecipeTV" treeview
Res = TreeTypeItem(TREE_RecipeTV, "Recipes" + TAB + "Desserts")
SWITCH Res
CASE tvError: Info("Element not found")
CASE tvLeaf: Info("The element is a leaf")
CASE tvNode: Info("The element is a node")
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 TreeView control to use.
<Element Path>: Character string
Full path of element to use. This parameter has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"

In case of duplicates on a path element, this path can contain the element identifier (specified at the end of its name by TreeID).
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.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