System > System Assembly Classes > String > String.TrimEnd
TrimEnd(Source: String): String;
Source. Source string.
The TrimEnd method deletes all the spaces from the end of the specified string.
For details about characters that are included into category of spaces see in MDSN in description of the String.Trim method.
Sub UserProc;
Var
s, s1: String;
Begin
s := " abcdef ";
s1 := String.TrimEnd(s);
End Sub UserProc;
After executing the example the "s1" variable contains the abcdef value.
See also: