RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStringBase::Trim Method

Returns a new System::AnsiStringBase without leading spaces, trailing spaces, or control characters.

Pascal
function Trim(codePage: Integer): AnsiStringBase;
C++
__fastcall AnsiStringBase Trim(int codePage) const;

System::AnsiStringBase::Trim returns a new System::AnsiStringBase removing leading and trailing spaces and control characters. Use System::AnsiStringBase::Trim to remove blank space before and after the first printing character. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!