Get length Version 6 (Java)

Action group: Text


Description

The action gets the total number of symbols in a text.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
TextThe text in which the character count will be performedRobin.String
Yes
Results
ResultNumeric variable containing the total number of characters in the textRobin.Numeric

Special conditions of use

When running the action, spaces are counted as a character.

Example of use

Task

There is a variable "Text" with value "Hello, friend! How are you?". Get the number of symbols in the text, show the result in the dialogue window.

Solution

Use the "Get length", "Show message" actions.

Implementation 

  1. Create a numeric variable where the "Get length" action result will be written into.

  2. Move the "Get length" 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 output is the dialogue window with the number of symbols in the text.

  • Нет меток