ValueList

Collection elements:

ValueListItem
Iteration through collection using For each ... In ... Do operator is available to object. Collection items are retrieved during iteration.
Access to collection item is possible using [...] operator. Item index (starting from 0) is passed as an argument.

Properties:

AvailableValues
ValueType

Methods:

Add
CheckItems
ChooseItem
Clear
Copy
Count
Delete
FillChecks
FindByID
FindByValue
Get
IndexOf
Insert
LoadValues
Move
ShowCheckItems
ShowChooseItem
SortByPresentation
SortByValue
UnloadValues

Constructors:

Default

Description:

Provides general access to the methods for lists of values.
Exchange with server is not available in the OrdinaryApplication run mode!

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: ValueListType.

Example:

// Moving an item in the list field one line forward.
// List - value list;
// CurListElement - current list element.
If CurListElement <> Undefined Then
    LineNumber = List.IndexOf(CurListElement);
    If 
LineNumber + 1 < List.Count() Then
        List.Move(CurListElement, 1);
    EndIf
;
EndIf
;

See also:

ValueListItem
ComboBox, property ChoiceList
TextBox, property ChoiceList
ValueList, method Copy
Form, method ChooseFromList
Form, method ChooseFromMenu
CustomField, property ValueList
CustomFields, method Add
CustomFields, method Insert
EnumList, property Filter
System enumeration text box extension, property AvailableValues
Enum text box extension, property AvailableValues

    

1C:Enterprise Developer's Community