Delete from position Version 5 (Java)

Action group: Text


Description

The action deletes the specified number of symbols from the position.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Source textText to make action onRobin.String
Yes
Position numberThe zero-based starting character position of a substringRobin.Numeric
Yes
LengthThe number of characters to be removed. By default, it is cut to the end of the line.Robin.Numeric
No
Results
ResultA string variable containing the deleted substring from the specified string.Robin.String

Special conditions of use

None.

Example of use

Task

There is a variable "Text" with value: "List: Robot 1. Robot 2. Robot 3." Show the value "Robot 1. Robot 2. Robot 3." in a dialogue window.

Solution

Use the "Delete from position", "Show message" actions.

Implementation

  1. Create a string type variable "Text" where the "Delete from position" action result will be written into.
  2. Move the "Delete from position" action to the workspace and set its parameters.

  3. Move the "Show message" action to the workspace and set its parameters.
  4. Click "Start" in the top panel to start the robot.

Result

The formatted text is displayed in the dialogue window.

  • Нет меток