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

Ключ

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

...

Remove elements of a collection Version 10 (Net)

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

Описание

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

Иконка

Image Removed

Входные параметры  

Основной список                                        Список для обработки.

Второй список                                             Cписок удаляемых элементов

Настройки

...

Description

The action removes the elements of the specified collection from the list.

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Main listList for processing

Свойство

Описание

Тип

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

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

Параметры

Основной список

Список для обработки
.Robin.Collection
Да

Yes

Второй список

Cписок удаляемых элементов
Second listThe list of removed elementsRobin.Collection

Да

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

Отсутствуют 

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

Задача


Yes

Special conditions of use

None. 

Example of use 

Task

There is a variable "Collection 1" with valuesИмеется переменная "Collection 1" со значениями: 

и переменная "Collection and the variable "Collection 2" со значениямиwith values:

Требуется удалить в "Collection 1" значения, которые содержатся в "Collection 2". Далее. получить значение по индексу "0" из "Collection 1" и вывести его в диалоговое окно. 

Решение

It is required to delete values in "Collection 1" that are contained in "Collection 2". Next, get the value at index "0" from "Collection 1" and display it in the dialog box. 

Solution

Use the Воспользоваться действиями "Remove elements of a collection", "Get value by index" и and "Show message" actions.

Реализация

Implementation

  1. Assemble a robot scheme consisting of actionsСобрать схему робота, состоящую из действий:


  2. Настроить параметры действия Set the parameters of the "Remove elements of a collection" action


  3. Настроить параметры действия Set the parameters of the "Get value by index" action


  4. Настроить параметры действия Set the parameters of the "Show message" action


  5. Запустить робота по кнопке "Запуск" в верхней панелиStart the robot using the "Start" button in the top panel

Результат

Result

The robot completed successfullyРобот отработал успешно.

Из "Collection 1" удалены элементы "Collection 2". В диалоговое окно выведено оставшееся значение в "Collection 1"The items in "Collection 2" have been deleted from "Collection 1". The remaining value in "Collection 1" is displayed in the dialog box