|
|
|
|
|
<TreeView Table>.InsertChild (Function) In french: <Table hiérarchique>.InsèreFils Inserts a row into a TreeView Table control, in a given hierarchy level.
// Insert a leaf ("Pancakes") at position 2 below the "Desserts" node TVT_Recipe.InsertChild("Desserts", 2, "Pancakes")
Syntax
Inserting a row by specifying the index of the parent element Hide the details
<Result> = <TreeView Table control>.InsertChildren(<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. <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 <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>.InsertChildren(<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. <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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|