RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiString::Trim Method

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

Pascal
function Trim: String;
C++
__fastcall AnsiString Trim() const;

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

 

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