|
|
|
|
|
- Type of search
- Miscellaneous
<TreeView Table column>.SearchChild (Function) In french: <Colonne Table hiérarchique>.ChercheFils
Warning
From version 27, TreeView Table column.SeekChild is kept for backward compatibility. This function has been replaced with <TreeView Table column>.SearchChild.
Searches for a value in a column of a TreeView Table control, in a specified branch.
ResSearch = COL_Product.SearchChild("Shirt", False, 2)
Syntax
Searching for a value by the index of the parent element Hide the details
<Result> = <Column>.SearchChild(<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 Hide the details
<Result> = <Column>.SearchChild(<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. Remarks Type of search - Exact Match: Only elements with a value strictly equal to <Searched Element> are returned by the function <TreeView Table column>.SearchChild. For example:
COL_Name.SearchChild("Doe")
- Generic Search: Items starting with <Searched Element> are returned by the function <TreeView Table column>.SearchChild. For example:
COL_Name.SearchChild("SMI", False)
Miscellaneous - The element found is not selected. <Table>.Position is used to position on the row and <Table>.SelectPlus is used to select the row.
- The search performed by <TreeView Table column>.SearchChild is not case sensitive (uppercase/lowercase characters).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|