Set value by index Version 11 (Net)

Action group: Collections 


Description

The action replaces the value in the list by index.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ListList for processing.Robin.Collection
Yes
IndexIndex in the listRobin.Numeric
Yes
ValueThe value, that will be added in the list by the specified indexRobin.Object
Yes

Special conditions of use 

None.

Example of use 

Task

There is a variable "Collection 1" with the values:

Replace the value of "China" with "Spain". Output the result in the dialog box. 

Solution

Use the actions "Set value by index", "Get value by index" and "Show message".

Implementation

  1. Assemble a robot scheme consisting of actions:


  2. Set the parameters of the "Set value by index" 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 value "Spain" is displayed in the dialog box. The replacement of the value at index "0" was successful.

  • Нет меток