RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiString::StringOfChar Method

Returns a string with the specified number of characters.

Pascal
function StringOfChar(ch: char; count: Integer): String; static;
C++
static __fastcall AnsiString StringOfChar(char ch, int count);

System::AnsiString::StringOfChar returns a string containing count characters with the character value given by ch. For example, 

System::AnsiString::AnsiString s = System::AnsiString::AnsiString::System::AnsiString::StringOfChar('A', 10); 

sets s to the string "AAAAAAAAAA". 

 

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