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
Adds a row into a TreeView Table control, at the end of 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.
WEBDEV - Server codeLinux This function is now available for 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.
WEBDEV - Server codeLinux This function is now available for 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.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
// Adds a root ("Desserts") to the TVT_Recipe TreeView Table control
TVT_Recipe.AddChild(Null, "Desserts")
 
// Adds a leaf ("Ice Creams") below the "Desserts" node
TVT_Recipe.AddChild("Desserts", "Ice Creams")
Syntax

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

<Result> = <TreeView Table control>.AddChild(<Subscript of parent element> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
  • Subscript of added row,
  • -1 if an error occurred.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<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 <Table>.AddLine).
<Element column 1>: Type of associated column (optional)
Elements of the row to add to the specified treeview Table control. Each element corresponds to a control column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.
<Element column N>: Type of associated column (optional)
Elements of the row to add to the specified treeview Table control. Each element corresponds to a control column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.

Adding a row by specifying the parent element Hide the details

<Result> = <TreeView Table control>.AddChild(<Parent element> [, <Element column 1> [... [, <Element column N>]]])
<Result>: Integer
  • Subscript of added row,
  • -1 if an error occurred.
<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. This parameter has the following format:
"<Name of root>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
<Element column 1>: Type of associated column (optional)
Elements of the row to add to the specified treeview Table control. Each element corresponds to a column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.
<Element column N>: Type of associated column (optional)
Elements of the row to add to the specified treeview Table control. Each element corresponds to a column. The type of the added element must be compatible with the type of relevant column.
If no parameter is specified, an empty row is added into the TreeView Table control.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment