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
Inserts a row into a TreeView Table control, in a given hierarchy level.
Example
// Insert a leaf ("Pancakes") at position 2 below the "Desserts" node
TableInsertChild(TVT_Recipe, "Desserts", 2, "Pancakes")
Syntax

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

<Result> = TableInsertChild(<TreeView Table control> , <Index of the parent element> , <Position> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
Index of inserted row.
<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 used is the control to which the current event belongs.
<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 TableInsertLine).
<Position>: Integer
Position where the row will be inserted in relation to its parent.
<Element column 1>: Type of associated column (optional)
Elements of the row to insert into the specified TreeView Table control. Each element corresponds to a column of TreeView Table control. The type of inserted element must be compatible with the type of relevant column.

If this parameter is not specified, an empty row is inserted into the TreeView Table control.
<Element column N>: Type of associated column (optional)
Elements of the row to insert into the specified TreeView Table control. Each element corresponds to a column of TreeView Table control. The type of inserted element must be compatible with the type of relevant column.

If this parameter is not specified, an empty row is inserted into the TreeView Table control.

Inserting a row by specifying the parent element Hide the details

<Result> = TableInsertChild(<TreeView Table control> , <Parent element> , <Position> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
Index of inserted row
<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 used is the control to which the current event belongs.
<Parent element>: Character string
Content of first column of parent element in the TreeView Table control.
<Position>: Integer
Position where the row will be inserted in relation to its parent.
<Element column 1>: Type of associated column (optional)
Elements of the row to insert into the specified TreeView Table control. Each element corresponds to a column in the TreeView Table control. The type of inserted element must be compatible with the type of relevant column.

If this parameter is not specified, an empty row is inserted into the TreeView Table control.
<Element column N>: Type of associated column (optional)
Elements of the row to insert into the specified TreeView Table control. Each element corresponds to a column in the TreeView Table control. The type of inserted element must be compatible with the type of relevant column.

If this parameter is not specified, an empty row is inserted into the TreeView Table control.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help