Insert into position Version 5 (Java)
Action group: Text
Description
Inserts the specified text from the specified position
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Text | Text to make action on | Robin.String | Yes | |
Position number | The zero-based starting character position of a substring | Robin.Numeric | Yes | |
Insert text | The text to be inserted from the specified position. | Robin.String | Yes | |
Results | ||||
Result | A string variable containing the processed text. | Robin.String |
Special conditions of use
None.
Example of use
Task
There is a text variable "Input text" with the value "Hi". You need to display the value "Hi, friend!" in a dialog box.
Solution
Use the actions "Insert into position", "Show message".
Implementation
- Create a variable "Text variable" (type - text) to save the result of the "Insert into position" action into it.
- Drag the "Insert into position" action to the workspace and set its parameters.
- Move the "Show message" action to the workspace and set its parameters.
- Launch the robot using the "Start" button in the top panel.
Result
The desired message is displayed in the dialog box
Обзор
Инструменты контента