RTrim
Removes all empty characters (whitespace) from the right side of a specified string.
Syntax
RTrim( StringValue );
Parameters
| Parameter Name | Type | Description | Optional? | Default Value |
|---|---|---|---|---|
| StringValue | String | The string to trim. | No | n/a |
Output
The updated string with all empty characters on the right removed.
Use Case
Although the Trim function is useful for removing all whitespace from either side of the string, you may in fact want to keep spaces on one particular side. In cases like this, you can use RTrim to selectively remove one side’s worth of whitespace, but not another. If you start with the string “ Tom ”, using RTrim converts this into “ Tom”.