История страницы
Remove objects Version 4 (Net)
Action group: Collections
...
Description
The action deletes the elements of the collection within the specified range.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Collection | The collection from which the elements will be removed |
Удалить элементы/ Delete Items
Группа действий: Коллекции
Действие удаляет элементы коллекции в заданном диапазоне.
Настройки
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Коллекция
. | Robin.Collection |
Yes |
От
Start index | Index of the element to be the first removed element. Default value is 0. | Robin.Numeric |
No |
До
End index | Index of the element to be the last (not inclusive) removed element. By default, the last element is included. | Robin.Numeric |
No |
Results |
Коллекция
Collection | The variable to which the resulting collection will be written | Robin.Collection |
Особые условия использования
Отсутствуют
Пример использования
Задача: существует переменная "Коллекция 1" с записями стран. Требуется удалить первые 3 записи и вывести наименование последней записи в диалоговое окно.
Решение: воспользоваться действиями "Удалить элементы", "Получить значение по индексу", "Сообщение".
Реализация:
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.
Solution
Use "Remove objects", "Get value by index", "Show message" actions.
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters of the "Remove objects" 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 required items are removed from the collection. The remaining value "Germany" is displayed in the dialog box.
...