XenoGuard Documentation

Trim Whitespace At End

Actions » Programming » String Operation » Truncate » Trim Whitespace At End 

The action Trim Whitespace At End removes all trailing whitespaces of a specified string and stores the shortened string in Result of the result list.

[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the String Operation node.
  3. In the Truncate node, select the Trim Whitespace At End action.


The action has the following input parameters:

name Description
Source String The string to be truncated.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]


The action returns the following results:

Result Contains the truncated string.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Information If there are no whitespaces to be removed from the string, the current string is stored in Result of the result list.

Example 1 (Remove trailing whitespaces from a variable):

This example deletes all whitespaces at the end of the local Message variable with Text as a data type.  The result after removing the trailing whitespaces is then output via Message Box.

See other string truncate operations:

Trim Whitespace
Trim Whitespace at Start