PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 24, <TreeView>.SelectOccurrence is kept for backward compatibility. This function is replaced by <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: <TreeView>.SelectCount can be used on:
  • a browsing or memory TreeView control, or a TreeView control on source.
  • a single-selection or multiselection TreeView control..
Example
nbOccurrences is int
nbOccurrences = TREE_TreeView1.SelectCount()
FOR i = 1 TO nbOccurrences
Trace("Selected node:" + TREE_TreeView1.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 multiselection TreeView controls.
  • 0 if no row is selected.
<TreeView control>: Control name
Name of TreeView control to use.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment