String.TrimRight

From Xojo Documentation

Method

Returns the string data type passed with trailing (right side) whitespaces removed.

Syntax

result=stringVariable.TrimRight

Part Type Description
result String SourceString with trailing whitespaces removed.
stringVariable String Any variable of type String.

Notes

TrimRight uses the list of unicode "whitespace" characters at http://www.unicode.org/Public/UNIDATA/PropList.txt.

Examples

This example removes the whitespaces from the right side of the string passed:

Var source As String = " Hello World "
Var result As String
result = source.TrimRight // Returns " Hello World"

See Also

String.Trim, String.TrimLeft functions; String data type.