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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Source text | Text to make action on | Robin.String | Yes | |
Position number | The zero-based starting character position of a substring | Robin.Numeric | Yes | |
Length | The number of characters to be removed. By default, it is cut to the end of the line. | Robin.Numeric | No | |
Results | ||||
Result | A 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
- Create a string type variable "Text" where the "Delete from position" action result will be written into.
- Move the "Delete from position" action to the workspace and set its parameters.
- Move the "Show message" action to the workspace and set its parameters.
- Click "Start" in the top panel to start the robot.
Result
The formatted text is displayed in the dialogue window.
Обзор
Инструменты контента