ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView Table functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a row into a TreeView Table control, at the end of a given hierarchy level.
// Adds a root ("Desserts") to the TVT_Recipe TreeView Table control
TableAddChild(TVT_Recipe, Null, "Desserts")
 
// Adds a leaf ("Ice Creams") below the "Desserts" node
TableAddChild(TVT_Recipe, "Desserts", "Ice Creams")
Syntax

Adding a row by specifying the index of the parent element Hide the details

<Result> = TableAddChild(<TreeView Table control> , <Index of the parent element> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
  • Index of the added row,
  • -1 if an error occurred.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
If this parameter corresponds to an empty string (""), the TreeView Table control to which the current process belongs will be used.
<Index of the parent element>: Integer
Index of the parent row in the hierarchy or NULL constant to insert the row at the root of the TreeView Table control (in this case, this function is equivalent to TableAddLine).
<Element column 1>: Type of associated column (optional)
Elements of the row to add to the specified TreeView Table control. Each element corresponds to a control column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.
<Element column N>: Type of associated column (optional)
Elements of the row to add to the specified TreeView Table control. Each element corresponds to a control column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.

Adding a row by specifying the parent element Hide the details

<Result> = TableAddChild(<TreeView Table control> , <Parent element> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
  • Index of the added row,
  • -1 if an error occurred.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
If this parameter corresponds to an empty string (""), the TreeView Table control to which the current process belongs will be used.
<Parent element>: Character string
Content of first column of parent element in the TreeView Table control. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
<Element column 1>: Type of associated column (optional)
Elements of the row to add to the specified TreeView Table control. Each element corresponds to a column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.
<Element column N>: Type of associated column (optional)
Elements of the row to add to the specified TreeView Table control. Each element corresponds to a column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/07/2022

Send a report | Local help