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
Moves the content of a row as well as its entire descending tree structure in a TreeView Table control.
Example
// Positions the content of branch 1
// as child of branch 19 in the treeview table
TableMoveBranch(TVT_Customer, 1, 19, tmInChild)
// Positions the content of "My Documents\To Do" branch
// as child of branch 1 in the treeview table
TableMoveBranch(TVT_FOLDERS, "My documents" + TAB + ...
"To do", 1, tmInChild)
// Positions the content of branch 1 as root of the treeview table
TableMoveBranch(TVT_Customer, 1, Null, tmInChild)
Syntax
<Result> = TableMoveBranch(<TreeView Table Control> , <Element to Move> , <Destination Element> , <Type of Move>)
<Result>: Integer
Actual position at which the row was moved. This position is equal to the subscript of the destination row only if the destination is found before the source in the TreeView Table control.
<TreeView Table Control>: Control name
Name of TreeView Table control to use. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Element to Move>: Integer or character string
Branch to move. This branch can be identified:
  • by the subscript of the branch to move. This subscript must be included between 1 and the number of control rows (returned by TableCount or by ..Occurrence).
  • by the path of the element to move. This parameter has the following format:
    "<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
    ["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
<Destination Element>: Integer or character string
Destination branch. This branch can be identified:
  • by the subscript of the destination branch. This subscript must be included between 1 and the number of control rows (returned by TableCount or by ..Occurrence).
  • by the path of the destination element. This parameter has the following format:
    "<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
    ["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
  • by 'Null' or empty string ("") to specify the root of the tree structure.
<Type of Move>: Boolean constant
Type of move to perform:
Versions 18 and later
tmInChild
New in version 18
tmInChild
tmInChild
The branch is moved and it will be the first child of destination branch. The branch moved will be positioned one level below the destination branch in the hierarchy.
Versions 18 and later
tmInSibling
New in version 18
tmInSibling
tmInSibling
The branch is moved and it will be the next sibling of the destination branch. The branch moved will be positioned on the same hierarchy level as the destination branch but at the following position.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Linux wd230obj.so
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment