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 TreeMap
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
Finds the index of an element in a TreeMap control from the element path. This path was specified in <TreeMap>.Add.
Ejemplo
// Le champ TMAP_Vin est rempli à partir d'un champ Table.
// Recherche de l'élément correspondant à l'élément sélectionné dans le champ Table
CheminSélection is string
CheminSélection = COL_Typevin[TABLE_VIN] + "\" + COL_Proprietaire[TABLE_VIN]
IndiceElement = TMAP_Vin.Cherche(CheminSélection)
// Sélection de l'élément dans le champ TreeMap
IF IndiceElement <> - 1 THEN
	TMAP_Vin = IndiceElement
END
Sintaxis
<Result> = <TreeMap control>.Seek(<Element path> [, <Start index>])
<Result>: Integro
  • 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>: Nombre del control
Name of the TreeMap control used.
<Element path>: Cadena de caracteres
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 <TreeMap>.Add.
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>: Entero opcional
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.
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