Insert into position Version 5 (Java)

Action group: Text


Description

Inserts the specified text from the specified position

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
TextText to make action onRobin.String
Yes
Position numberThe zero-based starting character position of a substringRobin.Numeric
Yes
Insert textThe text to be inserted from the specified position.Robin.String
Yes
Results
ResultA 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

  1. Create a variable "Text variable" (type - text) to save the result of the "Insert into position" action into it. 

  2. Drag the "Insert into position" action to the workspace and set its parameters.


  3. Move the "Show message" action to the workspace and set its parameters.

  4. Launch the robot using the "Start" button in the top panel. 


Result

The desired message is displayed in the dialog box 

  • Нет меток