PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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 the "TREE_RecipeTV" TreeView control
// Alphabetical sort from the "Desserts" node
Res = TREE_RecipeTV.Sort("Recipes" + TAB + "Desserts", tvUp)
Syntax
<Result> = <TreeView control>.Sort([<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 <TreeView>.Sort, all the branches of the TreeView control 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.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment