История страницы
...
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 |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Коллекция
. | 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 |
Особые условия использования
Отсутствуют.
Пример использования
Задача
Special conditions of use
None.
Example of use
Task
There is a variable Существует переменная "Collection 1" с записями стран. Требуется удалить первые 3 записи и вывести наименование оставшейся записи в диалоговое окно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Требуемые элементы удалены из коллекции. В диалогое окно выведено оставшееся значение "Germany".