Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 4 Следующий »

Find entry Version 5 (Java)

Action group: Text


Description

Specifies the sequence number of the character in the source text from which the search text begins.

Action icon

Settings of parameters

Свойство

Описание

Тип

Пример заполнения

Обязательность заполнения поля

Параметры

Текст

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

Robin.String


Да

Строка поиска

Текст, для которого необходимо найти порядковый номер позиции вхождения.

Robin.String


Да

Тип вхождения

Какое вхождение будет записано в результат.

Robin.String


Нет

Учитывать регистр

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

Robin.Boolean

true

Нет

Результаты

Результат

Числовая переменная, в которую будет записан результат поиска.

Robin.Numeric



Special conditions of use

None.

Example of use

Task

There is a variable "Primary Text" with the value "Hi, friend! How are you?". The ordinal number of the word "How" in the text (first occurrence) is required. Output the result in a dialog box.

Solution

Use the "Find entry", "Show message" actions.

Implementation

  1. Create a variable with the number type, into which the result of the "Find entry" action will be written.
  2. Move the "Find entry" 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 sequence number in the text for the word "How" is displayed in the dialog window.

 

  • Нет меток