Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Extract

...

by position Version 5 (Java)

Action group: Text

...

Description

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

Action icon

Image RemovedImage Added

Settings of parameters

Свойство
Property
Англ. наименование
Description
Описание
Type

Тип

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

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

Строка

Текст

ДаПозицияPosition

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

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

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

Filling exampleMandatory field
Parameters
Source textText to make action onRobin.String
Yes
PositionThe zero-based starting character position of a substring. If the specified value is greater than the possible value, an error will be thrown.Robin.Numeric
Yes
LengthThe number of characters to extract. By default, it is fetched to the end of the line. If the specified value is greater than the possible value, an error will be raised.Robin.Numeric
No
Results
ResultA string variable to which the extracted text will be written.Robin.String
Число

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 by position", "Show message" actions.

Implementation

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

  2. Move the "Extract from by 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.

...