Name

StringOfChar Function

Syntax

function StringOfChar(Ch: Char; Count: Integer): string;

Description

StringOfChar creates and returns a string that contains Count occurrences of the character Ch. StringOfChar is not a real function.

If Count ≤ 0, StringOfChar returns an empty string.

See Also

Char Type, FillChar Procedure, String Keyword

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.