REPEATSTRING  
Description

Creates a string that contains a specified number of repetitions of the specified string.

 
Returns

A string.

 
Category

String functions

 
Function syntax
RepeatString(string, count)
 
See also

CJustify, LJustify, RJustify

 
Parameters

 
Example
<h3>RepeatString Example</h3>
<p>RepeatString returns a string created from <I>string</I>, repeated 
a specified number of times.
<ul>
   <li>RepeatString("-", 10): <cfoutput>#RepeatString("-", 10)#</cfoutput>
   <li>RepeatString("&lt;BR&gt;", 3): <cfoutput>#RepeatString("<br>", 3)#
</cfoutput>
   <li>RepeatString("", 5): <cfoutput>#RepeatString("", 5)#</cfoutput>
   <li>RepeatString("abc", 0): <cfoutput>#RepeatString("abc", 0)#</cfoutput>
   <li>RepeatString("Lorem Ipsum", 2): 
    <cfoutput>#RepeatString("Lorem Ipsum", 2)#</cfoutput>
</ul>

A string or a variable that contains one.

STRING  

Number of repeats.

COUNT