[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Return a string consisting of 1 character repeated N times.
Source position: systemh.inc line 1226
function StringOfChar( |
c: AnsiChar; |
l: SizeInt |
):AnsiString; |
StringOfChar creates a new String of length l and fills it with the character c.
It is equivalent to the following calls:
SetLength(StringOfChar,l); FillChar(Pointer(StringOfChar)^,Length(StringOfChar),c);
None.
|
Set length of a string or dynamic array. |
Program Example97; {$H+} { Program to demonstrate the StringOfChar function. } Var S : String; begin S:=StringOfChar(' ',40)+'Aligned at column 41.'; Writeln(s); end.