Trim Trailing Spaces From String Method
The Trim Trailing Spaces From String method copies a string, and then removes any trailing spaces that exist in that copy. It returns a string with all trailing spaces removed. Note the following:
It accepts any type of string, including numeric values, and converts the input value to a string.
If the value that the string argument contains is NULL, then it returns a Null variant. For more information, see Variants.
Format
RTrim[$](string)
For information about the dollar sign, see Usage of the Dollar Sign.
The following table describes the arguments that you can use with this method.
Argument | Description |
---|---|
string |
A string or string expression. |
Example
For an example, see Right-Justify String Method.