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, <Table>.SwapLine 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, <Table>.SwapLine is used to swap two branches identified by their number. To swap rows identified by their path, use <TreeView Table>.SwapBranch.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
Example
// Swap rows 5 and 20 in a Table control
TABLE_Menu.SwapLine(5, 20)
Syntax
<Table control>.SwapLine(<Subscript of row to move> , <Subscript of destination row>)
<Table control>: Control name
Name of Table or TreeView Table control to use.
<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 <Table>.Count or ..Count 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 <Table>.Count or ..Count for example). A fatal error occurs if this parameter is not valid.
Remarks

Use conditions

<Table>.SwapLine can be used on a memory Table or TreeView Table control.
WEBDEV - Server codePHP This function is available for Table controls in Ajax mode, Table controls in classic mode and TreeView Table controls.
WEBDEV - Browser code This function is available for Table controls in browser mode only.
Component : wd240obj.dll
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment