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 TreeView
  • Type of search
  • Miscellaneous
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
Advertencia
A partir de la versión 27, TableSeekChild se conserva por motivos de compatibilidad. Esta función ha sido reemplazada por TableSearchChild.
Searches for a value in a column of a TreeView Table control, in a specified branch.
Ejemplo
// Searches for the "Shirt" element in the "COL_Product" column
// Generic search in the rows of level 2
ResSearch = TableSearchChild(COL_Product, "Shirt", False, 2)
Sintaxis

Searching for a value by the index of the parent element Ocultar los detalles

<Result> = TableSearchChild(<Column> , <Search element> [, <Type of search> [, <Index of the parent element> [, <Source row>]]])
<Result>: Integer
  • Index of the element found,
  • -1 if no element corresponds to the search.
<Column>: Control name
Name of the column in which the search will be performed.
<Search element>: Type of search element
Element to be found in the specified column. If the type of the search element is:
  • "Date" or "Time": the search is performed on the returned value.
  • "Monetary + Euro": the search is performed on the memorized currency.
<Type of search>: Optional boolean
  • True (default value) if the search must be an exact-match search,
  • False if the search must be a generic search.
<Index of the parent element>: Optional integer
Index of the parent row in the hierarchy.
<Source row>: Optional integer
Number of the source row for the search. If this parameter is not specified, the search is performed in the entire column. This parameter is used to find all the occurrences of a string in a column.

Searching for a value by specifying the parent element Ocultar los detalles

<Result> = TableSearchChild(<Column> , <Search element> [, <Type of search> [, <Parent element> [, <Source row>]]])
<Result>: Integer
  • Index of the element found,
  • -1 if no element corresponds to the search.
<Column>: Control name
Name of the column in which the search will be performed.
<Search element>: Type of search element
Element to be found in the specified column. If the type of the search element is:
  • "Date" or "Time": the search is performed on the returned value.
  • "Monetary + Euro": the search is performed on the memorized currency.
<Type of search>: Optional boolean
  • True (default value) if the search must be an exact-match search,
  • False if the search must be a generic search.
<Parent element>: Optional integer
Content of the parent row in the hierarchy. By default, this parameter is set to NULL: allows a search among roots.
<Source row>: Optional integer
Number of the source row for the search. If this parameter is not specified, the search is performed in the entire column. This parameter is used to find all the occurrences of a string in a column.
Observaciones

Type of search

  • Exact Match: Only elements with a value strictly equal to <Searched Element> are returned by the function TableSearchChild. For example:
    // Return all the customers named "Doe" found in "COL_Name"
    TableSearchChild(COL_Name, "Doe")
  • Generic Search: Items starting with <Searched Element> are returned by the function TableSearchChild. For example:
    // Return all customers whose name starts with "SMI"
    TableSearchChild(COL_Name, "SMI", False)

Miscellaneous

  • The element found is not selected. TablePosition is used to position on the row and TableSelectPlus is used to select the row.
  • The search performed by TableSearchChild is not case sensitive (uppercase/lowercase characters).
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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