История страницы
...
Remove elements of a collection Version 10 (Net)
Группа действийAction group: Коллекции Collections
Описание
Действие удаляет из списка элементы указанной коллекции.
Иконка
Входные параметры
Основной список Список для обработки.
Второй список Cписок удаляемых элементов
Настройки
...
Description
The action removes the elements of the specified collection from the list.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Main list | List for processing |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Основной список
. | Robin.Collection |
Yes |
Второй список
Second list | The list of removed elements | Robin.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
- Assemble a robot scheme consisting of actionsСобрать схему робота, состоящую из действий:
- Настроить параметры действия Set the parameters of the "Remove elements of a collection" action.
- Настроить параметры действия Set the parameters of the "Get value by index" action.
- Настроить параметры действия Set the parameters of the "Show message" action.
- Запустить робота по кнопке "Запуск" в верхней панели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.