PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Managing a sorted TreeView Table control
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
<TreeView Table>.SortChild (Function)
In french: <Table hiérarchique>.TrieFils
Sorts a branch in a TreeView Table control on one or more columns.
Versions 18 and later
WEBDEV - Server codePHP This function is now available for PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 18
WEBDEV - Server codePHP This function is now available for PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WEBDEV - Server codePHP This function is now available for PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
// Sort the "Designation" and "Price" columns in the "TVT_Product" control
// The "Designation" column is sorted in ascending order
// The "Price" column is sorted in descending order
TVT_Product.SortChild(Null, "Designation", "-Price")
// Sort the branch in descending order
TVT_Product.SortChild("Plumbing" + TAB + "Faucets", "Designation", "-Price")
Syntax

Sorting a branch in a TreeView Table control on one or more columns identified by their name. Hide the details

<Result> = <TreeView Table control>.SortChild(<Branch to sort> , <Name of column 1> [, <Name of column 2> [... [, <Name of column N>]]])
<Result>: Boolean
  • True if the sort was performed,
  • False otherwise.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Branch to sort>: Integer or character string (with or without quotes)
If this parameter is an integer, it corresponds to the subscript of parent containing the branch to sort.
If this parameter corresponds to NULL, the sort is performed on the "Root" elements.
If this parameter corresponds to a character string, it corresponds to the parent element containing the branch to sort.
<Name of column 1>: Character string with quotes
Name of first column to sort (up to 16 columns). This parameter has the following format:
"[<Direction>]<Column name>" where:
  • <Direction> (character) indicates the sort direction:
    • "+": ascending sort (by default),
    • "-": descending sort.
  • <Column name> (character string): name of column to sort.
<Name of column 2>: Optional character string with quotes
Name of the second column to sort (up to 16 columns). This parameter has the following format:
"[<Direction>]<Column name>" where:
  • <Direction> (character) indicates the sort direction:
    • "+": ascending sort (by default),
    • "-": descending sort.
  • <Column name> (character string): name of column to sort.
<Name of column N>: Optional character string with quotes
Name of the Nth column to sort (up to 16 columns). This parameter has the following format:
"[<Direction>]<Column name>" where:
  • <Direction> (character) indicates the sort direction:
    • "+": ascending sort (by default),
    • "-": descending sort.
  • <Column name> (character string): name of column to sort.
Remarks

Managing a sorted TreeView Table control

Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment