ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeMap functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
TreeMapSearch (Function)
In french: TreeMapRecherche
Warning
From version 17, this function is kept for backward compatibility. This function is replaced with TreeMapSeek.
Finds the index of an element in a TreeMap control from the element path. This path was specified in TreeMapAdd.
Example
// Le champ TMAP_Vin est rempli à partir d'une table. 
// Recherche de l'élément correspondant à l'élément sélectionné dans la table
CheminSélection is string
CheminSélection = COL_Typevin[TABLE_VIN] + "\" + COL_Proprietaire[TABLE_VIN]
IndiceElément = TreeMapSearch(TMAP_Vin, CheminSélection)
// Sélection de l'élément dans le champ TreeMap
IF IndiceElément <> -1 THEN
	TMAP_Vin = IndiceElément
END
Syntax
<Result> = TreeMapSearch(<TreeMap control> , <Element path> [, <Start index>])
<Result>: Integer
  • Index of the element found.
  • -1 if no element corresponds to the search.
Remark: The element found can be manipulated directly using its index. You can for example modify the properties of this element or select it in the TreeMap control.
<TreeMap control>: Control name
Name of the TreeMap control used.
If this parameter corresponds to an empty string (""), the TreeMap control to which the current process belongs will be used.
<Element path>: Character string
Path and caption of the sought element. This path must be identical to the one used when the element was added into the TreeMap control by TreeMapAdd.
The separator of different path elements can be:
  • the "\" character. For example: "MyDirectory\MyFile"..
  • the "TAB" character. For example: "Desserts "+TAB+"Crème brulée".
<Start index>: Optional integer
Index of the element from which the search will be performed. If this parameter is not specified, the search is performed in the entire TreeMap control. This parameter is used to find all the occurrences of a path.
Component: wd170obj.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help