ValueList.Add

Syntax:

Add(<Value>, <Representation>, <CheckMark>, <Picture>)

Parameters:

<Value> (optional)

Type: Arbitrary.
Value to be added.

<Representation> (optional)

Type: String; FormattedString.
A string expression containing a representation of the value being added.
Default value: Empty string.

<CheckMark> (optional)

Type: Boolean.
Defines whether to create the new value with check mark set or not.
Default value: False.

<Picture> (optional)

Type: Picture.
Visual value representation.
Default value: Empty picture.

Returned value:

Type: ValueListItem.

Description:

Adds a new item to the end of the list of values.

Availability:

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

Example:

Selection = Catalogs.PriceTypes.Select();
While 
Selection.Next() Do
    PriceTypesList.Add(Selection.Ref, Selection.Markup, True);
EndDo
;


    

1C:Enterprise Developer's Community