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

Ключ

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

...

Reverse Version 5 (Java)

Группа действий: Работа с текстом

Описание

Изменяет порядок символов в тексте на обратный.

Иконка

Image Removed

Параметры

Входные параметры  

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

Выходные параметры

Результат Строковая переменная, содержащая обработанный текст.

Настройки

...

Свойство

...

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

...

Описание

...

Тип

...

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

...

Строковая переменная, содержащая обработанный текст.

...

Особые условия использования

Отсутствуют.

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

Задача

Существует текстовая переменная "Первичный текст" с значением "РОПОТ". Требуется изменить порядок символов в переменной на обратный и результат вывести в диалоговое окно. 

Решение

Воспользоваться действиями "Перевернуть". "Сообщение". 

Реализация 

...

Action group: Text

...

Description

Reverse the order of characters in the text

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
TextSource text for processing.Robin.String
Yes
Results
ResultA string variable containing the processed text.Robin.String

Special conditions of use

None.

Example of use 

Task

There is a text variable "Text" with the value "Was it a cat I saw?". You need to reverse the order of characters in the variable and output the result in a dialog box. 

Solution

Use the actions "Reverse". "Show message". 

Implementation 

  1. Create a "Text variable" variable to record the result of the "Reverse" action into it. 
    Image Added

  2. Move the "Reverse" action to the workspace and set the action parameters. 
    Image Added

  3. Move the "Show message" action to the workspace and set the action parameters. 
    Image Added

  4. Launch the robot using the "Start" button in the top panel. 

Result

The dialog box displays the new value with a changed character order 
Image Added

Результат

В диалоговом окне отображено новое значение с измененным порядком символов 
Image Removed