Structure.Insert

Syntax:

Insert(<Key>, <Value>)

Parameters:

<Key> (required)

Type: String.
Key of element being specified. The key should meet rules established for identifiers.
  • The first key character should be a letter or underscore character(_).
  • Each subsequent character can be a letter, number or underscore character(_).

<Value> (optional)

Type: Arbitrary.
Value of element being specified.

Description:

You can use it to set a value of a structure item by key. If an item with the transferred key value exists, its value is replaced; otherwise a new item is added.

Availability:

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

Example:

Filter = New Structure("Date, Client");
Filter.Insert("Client", CurClient);
Filter.Insert("Date", WorkingDate);


    

1C:Enterprise Developer's Community