AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla
  • 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 Table control populated programmatically.
  • two branches in a TreeView Table control populated programmatically.
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.
Example
// Swap rows 5 and 20 in a Table control
TableSwapLine(TABLE_Menu, 5, 20)
Syntax
TableSwapLine(<Table control> , <Index of row to move> , <Destination row index>)
<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 Count for example).
<Destination row index>: 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 Count for example). A fatal error occurs if this parameter is not valid.
Remarks

Use conditions

TableSwapLine can be used on:
  • a Table or TreeView Table control populated programmatically.
  • WEBDEV - Server codePHP a Table control in "Server" or "Server + AJAX" mode, or on a TreeView Table control.
  • WEBDEV - Browser code a Table control in "Browser" mode.
Component: wd290obj.dll
Versión mínima requerida
  • Versión 18
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2022

Señalar un error o enviar una sugerencia | Ayuda local