AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla
  • Managing a sorted TreeView Table control
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Sorts a branch in a TreeView Table control on one or more columns.
Ejemplo
// Tri des colonnes "Désignation" et "Prix" dans le champ "TABLEH_Produit"
// La colonne "Désignation" est triée dans l'ordre croissant
// La colonne "Prix" est triée dans l'ordre décroissant
TABLEH_Produit.TrieFils(Null, "Désignation", "-Prix")
// Tri de la branche selon le prix décroissant
TABLEH_Produit.TrieFils("Plomberie" + TAB + "Robinets", "Désignation", "-Prix")
Sintaxis

Ordenar una rama en un control Tabla TreeView en una o más columnas identificadas por su nombre. Ocultar los detalles

<Result> = <TreeView Table control>.SortChild(<Branch to sort> , <Name of column 1> [, <Name of column 2> [... [, <Name of column N>]]])
<Result>: booleano
  • True if the sort was performed,
  • False otherwise.
<TreeView Table control>: Nombre del control
Name of the TreeView Table control to be used.
<Branch to sort>: Entero o cadena de caracteres
If this parameter is an integer, it corresponds to the index of the parent containing the branch to be sorted.
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>: Cadena de caracteres
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 sorting (default),
    • "-": sorting in descending order.
  • <Nom de la colonne> (string): name of column to sort.
<Name of column 2>: Cadena de caracteres opcional
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 sorting (default),
    • "-": sorting in descending order.
  • <Nom de la colonne> (string): name of column to sort.
<Name of column N>: Cadena de caracteres opcional
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 sorting (default),
    • "-": sorting in descending order.
  • <Nom de la colonne> (string): name of column to sort.
Observaciones

Managing a sorted TreeView Table control

Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local