Array.Insert

Syntax:

Insert(<Index>, <Value>)

Parameters:

<Index> (required)

Type: Number.
Index of the inserted value.

<Value> (optional)

Type: Arbitrary.
Inserted value. If not specified, a value of Undefined type will be added.

Description:

Inserts a value into an array using a specified index.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

You can specify an index greater than UBound. In this case the array is supplemented by elements with an index from UBound()+1 to an index specified in the index parameter.

Example:

Array.Insert(0, "First");

    

1C:Enterprise Developer's Community