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" 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.
Обзор
Инструменты контента