Returns a string with a specified number of repeating characters.
function StringOfChar(ch: AnsiChar; Count: Integer): AnsiString; overload; function StringOfChar(ch: WideChar; Count: Integer): UnicodeString; overload;
AnsiString StringOfChar(AnsiChar ch, int Count); UnicodeString StringOfChar(WideChar ch, int Count);
In Delphi code, StringOfChar returns a string containing Count characters with the character value given by Ch. For example,
S := StringOfChar('A', 10);
sets S to the string 'AAAAAAAAAA'.
Note that StringOfChar returns the same type as ch: either an AnsiString or UnicodeString, so it works properly for both types.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|