AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla
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
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.
Component: wd290obj.dll
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/06/2023

Señalar un error o enviar una sugerencia | Ayuda local