RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideString::StringOfChar Method

Returns a string with the specified number of characters.

Pascal
function StringOfChar(ch: WideChar; count: Integer): WideString; static;
C++
static __fastcall WideString StringOfChar(WideChar ch, int count);

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

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

sets s to the string "AAAAAAAAAA". 

 

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