PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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.
Versions 18 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 18
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Example
// Inserts a leaf ("Pancakes") at position 2 below the "Desserts" node
TableInsertChild(TVT_Recipe, "Desserts", 2, "Pancakes")
Syntax

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

<Result> = TableInsertChild(<TreeView Table Control>, <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. If this parameter corresponds to an empty string (""), the TreeView Table control to which the current process belongs will be used.
<Subscript of Parent Element>: Integer
Subscript of parent row in the hierarchy or NULL constant to insert the row at the root of 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
Subscript of inserted row
<TreeView Table Control>: Control name
Name of TreeView Table control to use. 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 (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.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment