Structure

Collection elements:

KeyAndValue
Iteration through collection using For each ... In ... Do operator is available to object. Collection items are retrieved during iteration.

Properties:

<Key name>

Methods:

Clear
Count
Delete
Insert
Property

Constructors:

Based on a fixed structure
Based on keys and values

Description:

It is a collection of KeyAndValue pairs. Key must be of the string type and must meet the naming requirements for script variables.
Structure values can be addressed as an object property. The key is used as a property name.
The structure is normally used to store a limited number of named values.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).
Exchange with server is possible. Serializable. The given object may be serialized to/from XDTO. The XDTO type correspoding to this object is defined in {http://v8.1c.ru/8.1/data/core} namespace. XDTO type name: Structure.

Example:

History = New Array;
Record = New Structure;
Record.Insert("Settings", ReportsBuilder.GetSettings());
Record.Insert("Report", CurrentRow);
History.Add(Record);

See also:

FixedStructure
KeyAndValue

    

1C:Enterprise Developer's Community