Trim Version 5 (Java)

Action group: Text


Description

Deletes all start and end occurrences of the specified character set

Action icon


Settings of parameters

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

Special conditions of use

None.

Example of use

Task

There is a variable "Primary text" with the value: "House" It is required to output in the dialog box the value: House

Solution

Use the actions "Trim", "Show message". 

Implementation

  1. Create a variable with the type string "Text variable" into which the result of the "Trim" action will be written. 

  2. Move the "Trim" action to the workspace and set its parameters. 


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


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

Result

The formatted text is displayed in the dialog box


  • Нет меток