|
|
|
|
<Table>.SwapLine (Function) In french: <Table>.EchangeLigne Swaps: - two rows in a Table control populated programmatically.
- two branches in a TreeView Table control populated programmatically.
Remarks: - 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 <Table>.MoveLine.
- 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.
// Swap rows 5 and 20 in a Table control TABLE_Menu.SwapLine(5, 20)
Syntax
<Table control>.SwapLine(<Index of row to move> , <Destination row index>)
<Table control>: Control name Name of Table or TreeView Table control to use. <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 <Table>.Count 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 <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 Table or TreeView Table control populated programmatically.
 a Table control in "Server" or "Server + AJAX" mode, or on a TreeView Table control. a Table control in "Browser" mode.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|