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
Deletes an element and its "children" from a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Example
// Delete the "Desserts" node and all its
// "children" from the "TREE_TVRecipe" TreeView control
Res = TreeDelete(TREE_TVRecipe, "Recipes" + TAB + "Desserts")
Syntax
<Result> = TreeDelete(<TreeView control> , <Element path>)
<Result>: Boolean
  • True if the deletion was performed,
  • False if the specified element does not exist.
<TreeView control>: Control name
Name of the TreeView control to be used.
<Element path>: Character string
Full path of element to delete. 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: 05/26/2022

Send a report | Local help