ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the number of direct children for an element in a TreeView Table control.
Example
// On veut compter le nombre de desserts présents dans la carte du restaurant
nNombreDessert is int 
nNombreDessert = TABLEH_Carte.FilsOccurrence("Desserts")
Info("Il y a actuellement: " + nNombreDessert + " disponibles.")
Syntax

Children of a row identified by its number Hide the details

<Result> = <TreeView Table control>.ChildCount(<Row number>)
<Result>: Integer
  • Number of children for the element.
  • -1 if the number of the specified row does not exist.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Row number>: Integer
Number of row for which the number of child elements will be calculated.

Children of a row identified by its path Hide the details

<Result> = <TreeView Table control>.ChildCount(<Branch name>)
<Result>: Integer
Number of children for the element
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Branch name>: Character string
Name of the branch for which the number of child elements must be calculated. This parameter has the following format:
"<Nom de la racine>" + TAB + ["<Nom du 1er noeud>" + TAB + ...
["<Nom du 2ème noeud>" + TAB + [...]]]"<Nom de la feuille>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help