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
Returns the "children" of an element (lower level) in a TreeView Table control.
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
// First "child" of first node in the "TVT_RecipeTV" control
Res is int
Res = TableGiveChild(TVT_RecipeTV, 1, taFirst)
WHILE Res <> -1
Trace(Res)
Res = TableGiveChild(TVT_RecipeTV, 1, taNext)
END
// Recursive procedure used to list all children
// of all parents from a row
PROCEDURE ListChildren(i=0)
j is int
// If no row number was passed in parameter,
// gets the subscript of selected row
IF i = 0 THEN i = TableSelect(TVT_MyTreeViewTable)
j = TableGiveChild(TVT_MyTreeViewTable, i, taFirst)
WHILE j <> -1
Info("Row: " + j + ", Code: " + COL_Code[j])
// Call the procedure by specifying
// the current row number
ListChildren(j)
j = TableGiveChild(TVT_MyTreeViewTable, i, taNext)
END
Syntax

Returning the child of an element by specifying the row number Hide the details

<Result> = TableGiveChild(<TreeView Table Control> , <Row Number> , <Child>)
<Result>: Integer
  • Number of the row for the "child" that was found,
  • -1 if no "child" is found.
<TreeView Table Control>: Control name
Name of TreeView Table control to use.
<Row Number>: Integer
Number of the row containing the branch to use.
<Child>: Constant
Indicates the requested "child".
taFirstFirst child element.
taNextNext child element.

Returning the child of an element by specifying its name Hide the details

<Result> = TableGiveChild(<TreeView Table Control> [, <Element Name>] , <Child>)
<Result>: Integer
  • Number of the row for the "child" that was found,
  • -1 if no "child" is found.
<TreeView Table Control>: Control name
Name of TreeView Table control to use.
<Element Name>: Optional character string (with quotes)
Name of element to use. This parameter has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Element Name>"
A WLanguage error occurs if this parameter does not correspond to an existing element.
<Child>: Constant
Indicates the requested "child".
taFirstFirst child element.
taNextNext child element.
Remarks
The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
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