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
Swaps the content of two rows (as well as their respective tree structure) in a TreeView Table control.
Example
// Swap branches 5 and 20 in a TreeView Table control
TableSwapBranch(TVT_MENU, 5, 20)
Syntax
TableSwapBranch(<TreeView Table Control> , <First Element to Swap> , <Second Element to Swap>)
<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.
<First Element to Swap>: Integer or character string
First branch that will be used for the swap. This branch can be identified:
  • by the subscript of the branch to move. This subscript must be included between 1 and the number of rows found in the TreeView Table control (returned by TableCount or ..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>"
<Second Element to Swap>: Integer or character string
Second 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 rows found in the TreeView Table control (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>"
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