Base Scripting Language GuidePascal-Library Custom Scripting FunctionsTrimRightOn this pageTrimRightTrims trailing spaces and control characters from a string. Structure TrimRight(string): string; Parameters Return value Description TrimRight returns a copy of the string S with trailing spaces and control characters removed.