ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 24, TreeView.SelectOccurrence is kept for backward compatibility. This function has been replaced with <TreeView>.SelectCount.
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 <TreeView>.SelectCount 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.
Example
nbOccurrences is int 
nbOccurrences = ARBRE_Arbre1.SelectOccurrence()
FOR i = 1 TO nbOccurrences 
	Trace("Noeud sélectionné :" + ARBRE_Arbre1.Select(False, i))  
END
Syntax
<Result> = <TreeView control>.SelectCount()
<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.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help