Extract from position Version 5 (Java)

Action group: Text


Description

The action extracts the specified number of characters from the specified position.

Action icon

Settings of parameters

Свойство

Англ. наименование

Описание

Тип

Пример заполненияОбязательность заполнения поля
Параметры
ТекстText

Исходный текст для обработки.

Строка

Текст

Да
ПозицияPosition

Порядковый номер символа, с которого будет начинаться извлечение.

Отсчитывается с "0".



Если указанное значение больше возможного, будет вызвана ошибка.

Число

1

Да
ДлинаLength

Количество символов, которое необходимо извлечь.

По умолчанию извлекается до конца строки.


Если указанное значение больше возможного, будет вызвана ошибка.

Число3Нет
Результаты
РезультатResultСтроковая переменная, в которую будет записан извлеченный текст.Строкаекс

Special conditions of use

None.

Example of use

Task

There is a variable "Source text" with value "HouseBuild". Extract value "House" and display it in a dialogue box.

Solution

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

Implementation

  1. Create a Text variable where the "Extract from position" action result will be written into.

  2. Move the "Extract 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 text is extracted from position, the desired value is displayed in the dialogue window.