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

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

<Result> = <TreeView Table control>.InsertChild(<Subscript of parent element> , <Position> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
Subscript of inserted row.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Subscript of parent element>: Integer
Subscript 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, it is equivalent to <Table>.InsertLine).
<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> = <TreeView Table control>.InsertChild(<Parent element> , <Position> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
Subscript of inserted row
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Parent element>: Character string (with quotes)
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.
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment