Insert value Version 1 (.Net)

Action group: Collections 


Description

The action inserts the value into the list by index, shifting the other elements

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters

List

List to process

Robin.Collection


Yes

Index

Index in list

Robin.Numeric


Yes

Value

The value to be inserted into the list at the specified index

Robin.Object


Yes

Special conditions of use

None. 

Example of use

Task

There is a collection "Collection 1" consisting of 3 values: Olya, Masha, Katya. It is necessary to add the value Ira to this collection with index 1 in the list.  Then, as a check, get the value at index 1. 

Solution

Use the actions "Insert value", "Get value by index".

Implementation

  1. Move the "Insert value" action to the workspace and set its parameters. 

    In the "List" field, specify the required collection of values: 


    In the "Index" field specify 1. 
    In the "Value" field specify Ira. 
  2. Move the "Get value by index" action to the workspace and set its parameters by specifying the desired collection and index 1. 
  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The value "Ira" was successfully added to the collection and retrieved by index.



  • Нет меток