Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function StringOfChar(c : Char; Length: Integer) : string
Returns a string containing a repeating character string of the length specified.
If Length is less or equal to zero, function returns an empty string.
var s : string;
s:=StringOfChar('G',5);
//s='GGGGG';
|
String Types in Delphi
Understanding and managing string data types in Delphi's Object Pascal. Learn about differences between Short, Long, Wide and null-terminated strings.
FillChar,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|