Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Remove objects Version 4 (Net)

Action group: Collections

...

Description

The action deletes the elements of the collection within the specified range.

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
CollectionThe collection from which the elements will be removed

Удалить элементы/ Delete Items

Группа действий: Коллекции 

Действие удаляет элементы коллекции в заданном диапазоне.

Image Removed

Настройки

Свойство

Описание

Тип

Пример заполнения

Обязательность заполнения поля

Параметры

Коллекция

Коллекция, из которой будут удалены элементы
.Robin.Collection
Да

Yes

От

Порядковый номер элемента, который будет первым удаленным элементом. Значение по-умолчанию
Start indexIndex of the element to be the first removed element. Default value is 0.Robin.Numeric
Нет

No

До

Порядковый номер элемента, который будет последним (не включительно) удаленным элементом. По-умолчанию включен последний элемент
End indexIndex of the element to be the last (not inclusive) removed element. By default, the last element is included.Robin.Numeric
Нет

No
Результаты
Results

Коллекция

Переменная, в которую будет записана результирующая коллекция.
CollectionThe variable to which the resulting collection will be writtenRobin.Collection

Особые условия использования

Отсутствуют 

Пример использования 

Задача: существует переменная "Коллекция 1" с записями стран. Требуется удалить первые 3 записи и вывести наименование последней записи в диалоговое окно. 

Image Removed

Решение: воспользоваться действиями "Удалить элементы", "Получить значение по индексу", "Сообщение". 

Реализация



Special conditions of use

None.

Example of use 

Task

There is a variable "Collection 1" with country records. It is required to delete the first 3 records and display the name of the remaining record in the dialog box. 

Image Added

Solution

Use "Remove objects", "Get value by index", "Show message" actions. 

Implementation

  1. Assemble a robot scheme consisting of actions:
    Image Added

  2. Set the parameters of the "Remove objects" action. 
    Image Added

  3. Set the parameters of the "Get value by index" action. 
    Image Added

  4. Set the parameters of the "Show message" action.
    Image Added

  5. Start the robot using the "Start" button in the top panel. 

Result

The required items are removed from the collection. The remaining value "Germany" is displayed in the dialog box. 

Image Added

...