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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
CollectionThe collection from which the elements will be removed.Robin.Collection
Yes
Start indexIndex of the element to be the first removed element. Default value is 0.Robin.Numeric
No
End indexIndex of the element to be the last (not inclusive) removed element. By default, the last element is included.Robin.Numeric
No
Results
CollectionThe variable to which the resulting collection will be writtenRobin.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

  1. Assemble a robot scheme consisting of actions:


  2. Set the parameters of the "Remove objects" 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 required items are removed from the collection. The remaining value "Germany" is displayed in the dialog box. 

  • Нет меток