PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
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:
  • two rows in a memory Table control.
  • two branches in a memory Treeview Table control.
Notes:
  • In a Table control, TableSwapLine is used to swap two rows identified by their number. To perform a specific swap (taking the current row into account, ...), use TableMoveLine.
  • In a TreeView Table control, TableSwapLine is used to swap two branches identified by their number. To swap rows identified by their path, use TableSwapBranch.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
Versions 20 and later
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVJava This function is now available for the Java applications.
New in version 20
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVJava This function is now available for the Java applications.
Example
// Swap rows 5 and 20 in a Table control
TableSwapLine(TABLE_Menu, 5, 20)
Syntax
TableSwapLine(<Table Control> , <Subscript of Row to Move> , <Subscript of Destination Row>)
<Table Control>: Control name
Name of Table or TreeView Table control to use. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Subscript of Row to Move>: Integer
Position of row to move. This position must be included between 1 and the total number of rows found in the control (returned by TableCount or ..Occurrence for example).
<Subscript of Destination Row>: Integer
New row position. This position must be included between 1 and the total number of rows found in the control (returned by TableCount or ..Occurrence for example). A fatal error occurs if this parameter is not valid.
Remarks

Use conditions

TableSwapLine can be used on a memory Table or TreeView Table control.
WEBDEV - Server codePHP This function is available for the Ajax Table controls, the Classic Table controls and the TreeView Table controls.
WEBDEV - Browser code This function is available for the browser Table controls only.
AndroidiPhone/iPad The TreeView Table control is not available.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment