1. Tech

Your suggestion is on its way!

An email with a link to:

http://delphi.about.com/library/rtl/blrtlStringOfChar.htm

was emailed to:

Thanks for sharing About.com with others!

Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

StringOfChar

unit
System
category
string handling routines

declaration
function StringOfChar(c : Char; Length: Integer) : string

description
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.

example
var s : string;

s:=StringOfChar('G',5);

//s='GGGGG';

in real code
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.

see also
FillChar,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?

©2014 About.com. All rights reserved.