Get values Version 8 (Java)
Action group: Collections
Description
The action returns a collection of all dictionary values
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Dictionary | Dictionary for processing. | Robin.Dictionary | Yes | |
Results | ||||
Result | A variable containing a collection of all the dictionary values. | Robin.Collection |
Special conditions of use
None.
Example of use
Task
There is a variable "Dictionary" with values: 1 - Moscow, 2 - Tokyo. It is necessary to get a collection of values and display the values of cities in the dialog boxes.
Solution
Use the "Get values", "Get value by index", and "Show message" actions.
Implementation
- Create a variable "Collection" to record the result of the "Get values" action
- Move to the workspace and set the parameters of the "Get values" action
- Create 2 variables: "object" and "object 1" to specify the results of "Get values by index" actions (for index 0 and 1).
- Move to the workspace and set the parameters of the "Get value by index" action (for index 0).
- Move to the workspace and set the parameters of the "Get value by index" action (for index 1).
- Move to the workspace and set the parameters of the "Show message" action (for index 0).
- Move to the workspace and set the parameters of the "Show message" action (for index 1).
Result
The values are obtained from the dictionary and displayed sequentially in dialog boxes.
Обзор
Инструменты контента