RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::StringOfChar Method

Returns string with specified number of characters.

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

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

UnicodeString s = System::UnicodeString::UnicodeString().StringOfChar('A', 4); 

sets s to the string "AAAA". 

 

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