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 TreeView
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 24, TreeSelectOccurrence se conserva por motivos de compatibilidad. Esta función ha sido reemplazada por TreeSelectCount.
Returns the number of selected elements in a TreeView control (for a multi-selection TreeView control). The selected rows correspond to the current rows on which the selection bar is displayed.
Note: The TreeSelectCount function can be used on both:
  • a TreeView control populated programmatically, based on a data file, or based on a variable.
  • a single-selection or multi-selection TreeView control.
Ejemplo
nbOccurrences is int 
nbOccurrences = TreeSelectCount(TREE_TreeView1)
FOR i = 1 TO nbOccurrences 
	Trace("Selected node:" + TreeSelect(TREE_TreeView1, False, i))  
END
Sintaxis
<Result> = TreeSelectCount(<TreeView control>)
<Result>: Integer
  • Number of selected rows in the specified TreeView control. This number can be greater than 1 for multi-selection TreeView controls.
  • 0 if no row is selected.
<TreeView control>: Control name
Name of the TreeView control to be used.
A WLanguage error occurs if this parameter does not correspond to the name of a TreeView control.
If this parameter corresponds to an empty string (""), the control used will be the TreeView control to which the current event belongs.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 16
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 25/03/2025

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