ValueTreeRowCollection.Move

Syntax:

Move(<Row>, <Offset>)

Parameters:

<Row> (required)

Type: Number; ValueTreeRow.
The index of the row to be moved or the row itself.

<Offset> (required)

Type: Number.
Number of rows by which the row must be moved. A positive value means an increase in the current index (move to the end of the collection), and a negative value means a decrease in the current index (move to the beginning of the collection).

Description:

Moves a row by the specified number of positions in the row collection of a given value tree level.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

// move the first line to the next position
ContentRows.Move(0, 1);
// move the second line to the previous position
ContentRows.Move(1, -1);


    

1C:Enterprise Developer's Community