RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.Trim Function

Trims leading and trailing spaces and control characters from a string.

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

SysUtils

Trim removes leading and trailing spaces and control characters from the given string S. 

 

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