История страницы
...
Reverse Version 5 (Java)
Группа действий: Работа с текстом
Описание
Изменяет порядок символов в тексте на обратный.
Иконка
Параметры
Входные параметры
Текст Исходный текст для обработки.
Выходные параметры
Результат Строковая переменная, содержащая обработанный текст.
Настройки
...
Свойство
...
Англ. наименование
...
Описание
...
Тип
...
Исходный текст для обработки.
...
Строковая переменная, содержащая обработанный текст.
...
Особые условия использования
Отсутствуют.
Пример использования
Задача
Существует текстовая переменная "Первичный текст" с значением "РОПОТ". Требуется изменить порядок символов в переменной на обратный и результат вывести в диалоговое окно.
Решение
Воспользоваться действиями "Перевернуть". "Сообщение".
Реализация
...
Action group: Text
...
Description
Reverse the order of characters in the text
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Text | Source text for processing. | Robin.String | Yes | |
Results | ||||
Result | A 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
- Create a "Text variable" variable to record the result of the "Reverse" action into it.
- Move the "Reverse" action to the workspace and set the action parameters.
- Move the "Show message" action to the workspace and set the action parameters.
- Launch the robot using the "Start" button in the top panel.
Result
The dialog box displays the new value with a changed character order
Результат
В диалоговом окне отображено новое значение с измененным порядком символов