PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
TreeSelectOccurrence (Function)
In French: ArbreSelectOccurrence
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: TreeSelectOccurrence can be used on:
  • a browsing or memory TreeView control, or a TreeView control on source.
  • a single-selection or multi-selection TreeView control.
Example
nbOccurrences is int
nbOccurrences = TreeSelectOccurrence(TREE_TreeView1)
FOR i = 1 TO nbOccurrences
Trace("Selected node:" + TreeSelect(TREE_TreeView1, False, i)) 
END
Syntax
<Result> = TreeSelectOccurrence(<TreeView Control>)
<Result>: Integer
  • Number of selected rows in the specified TreeView control. This number can be greater than 1 for the multi-selection treeviews.
  • 0 if no row is selected.
<TreeView Control>: Control name
Name of TreeView control to use.
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 TreeView control to which the current process belongs will be used.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment