RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.QuotedStr Function

Gets quoted string from string.

Pascal
function QuotedStr(const S: AnsiString): AnsiString; overload;
C++
AnsiString QuotedStr(const AnsiString S);

QuotedStr returns the given AnsiString as a quoted AnsiString. A single quote character is inserted at the beginning and the end of the AnsiString, and for each single quote character in the AnsiString, another one is added. To remove the quotes from a quoted string, use AnsiDequotedStr routine. 

 

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