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
Свойство | Англ. наименование | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
---|---|---|---|---|---|
Параметры | |||||
Текст | Text | Исходный текст для обработки. | Строка | Тестовый текст | Да |
Номер позиции | Position number | Порядковый номер символа, с которого будет начинаться удаление. Порядковый номер отсчитывается с "0". | Число | 2 | Да |
Длина | Length | Количество символов, которое необходимо удалить. По умолчанию обрезает строку до конца. Если указано значение большее оставшегося количества символов, то вызывается ошибка. | Число | 1 | Нет |
Результаты | |||||
Результат | Result | Строковая переменная, содержащая обработанный текст. | Строка |
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.
Обзор
Инструменты контента