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
Returns the number of direct children for an element in a TreeView Table control.
Example
// Count the number of desserts found in the restaurant menu
nNumberDesserts is int
nNumberDesserts = TVT_Menu.ChildCount("Desserts")
Info("There are: " + nNumberDesserts + " on the menu.")
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.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<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 TreeView Table control to use.
<Branch name>: Character string (with or without quotes)
Name of the branch for which the number of child elements must be calculated. This parameter has the following format:
"<Name of root>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment