PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Type of search
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Warning
From version 27, TableSeekChild is kept for backward compatibility. This function is replaced by TableSeekChild.
Seeks a value in a column of a TreeView Table control, in a specified branch.
Versions 27 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 27
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Recherche l'élément "Chemise" dans la colonne "COL_Produit"
// Recherche générique dans les lignes de niveau 2
ResCherche = TableSearchChild(COL_Produit, "Chemise", False, 2)
Syntax

Search while specifying the subscript of parent element Hide the details

<Result> = TableSeekChild(<Column> , <Sought element> [, <Type of search> [, <Subscript of parent element> [, <Source row>]]])
<Result>: entier
  • Subscript of element found,
  • -1 if no element corresponds to the search.
<Column>: Control name
Name of column where the search will be performed.
<Sought element>: Type of sought element
Element that must be found in the specified column. If the type of the sought element is:
  • "Date" or "Time": the search is performed on the returned value.
  • "Currency + Euro": the search is performed on the stored 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.
<Subscript of parent element>: Optional integer
Subscript 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.

Search while specifying the parent element Hide the details

<Result> = TableSeekChild(<Column> , <Sought element> [, <Type of search> [, <Parent element> [, <Source row>]]])
<Result>: entier
  • Subscript of element found,
  • -1 if no element corresponds to the search.
<Column>: Control name
Name of column where the search will be performed.
<Sought element>: Type of sought element
Element that must be found in the specified column. If the type of the sought element is:
  • "Date" or "Time": the search is performed on the returned value.
  • "Currency + Euro": the search is performed on the stored 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. This parameter corresponds to NULL by default: used to perform a search among the 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.
Remarks

Type of search

  • Exact-match search: The elements whose value is strictly equal to <Sought element> are returned by TableSearchChild. For example:
    // Retourner tous les "Dupond" de la colonne "COL_Nom"
    TableSearchChild(COL_Nom, "Dupond")
  • Generic search: The elements starting with <Sought element> are returned by TableSearchChild. For example:
    // Retourner tous les noms commençant par "DUP"
    TableSearchChild(COL_Nom, "DUP", False)

Various

  • 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).
Business / UI classification: UI Code
Component: wd270obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment