PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Use conditions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Swaps:
  • two rows in a memory Table control.
  • two branches in a memory Treeview Table control.
Remarks:
  • 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 20 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// On échange les lignes 5 et 20 dans un champ Table
TableSwapLine(TABLE_Menu, 5, 20)
Syntax
TableSwapLine(<Table control> , <Index of row to move> , <Subscript of destination row>)
<Table control>: Control name
Name of the Table or TreeView Table control to be used. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Index of row to move>: Integer
Position of the 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

The TableSwapLine function can be used on an Table control or hierarchical memory table.
AndroidiPhone/iPad The TreeView Table control is not available.
Component: wd270obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment