RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TrimRight Function

Trims trailing spaces and control characters from a string.

Pascal
function TrimRight(const S: string): string; overload;
function TrimRight(const S: WideString): WideString; overload;
C++
AnsiString TrimRight(const AnsiString S);
BSTR TrimRight(const BSTR S);

SysUtils

TrimRight returns a copy of the string S with trailing spaces and control characters removed. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!