JCL Help:StrRepeat@AnsiString@SizeInt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Repeats a string Count number of times.


Pascal

 function StrRepeat(const S: string; Count: SizeInt): string;
function StrRepeat(const S: AnsiString; Count: SizeInt): AnsiString;


Parameters

Parameters Description
const S: string The string to repeat.
Count: SizeInt The number of times to repeat the specified string.


Return Value

The specified string, repeated Count number of times.


Description

The StrRepeat routine returns a string consisting of the specified string, repeated Count number of times. For example, StrRepeat('He', 3) returns 'HeHeHe'.


About

Unit

JclAnsiStrings


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page