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
Sorts the elements found in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Example
// Sort the elements found in "TREE_RecipeTV" control
// Alphabetical sort from the "Desserts" node
Res = TreeSort(TREE_RecipeTV, "Recipes" + TAB + "Desserts", tvUp)
Syntax
<Result> = TreeSort(<TreeView Control> [, <Path of Source Element> [, <Type of Sort>]])
<Result>: Boolean
  • True if the sort was performed,
  • False if the specified source element does not exist.
Java After the call to TreeSort, all treeview branches are automatically collapsed.
<TreeView Control>: Control name
Name of TreeView control to sort.
<Path of Source Element>: Optional character string
Full path of element from which the sort will be performed. If this parameter corresponds to the NULL constant or if it is not specified, the sort is performed on all elements found in the TreeView control. 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).
<Type of Sort>: Optional constant
Type of sort to perform.
tvUp
(Default value)
Sort in alphabetical order.
tvDownSort in reverse alphabetical order.
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