Contents > CFML Reference > ColdFusion Functions > RepeatString PreviousNext

RepeatString

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

A string.

String functions

RepeatString(string, count)

CJustify, LJustify, RJustify

Parameter

Description

string

A string or a variable that contains one

count

Number of repeats

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

Contents > CFML Reference > ColdFusion Functions > RepeatString PreviousNext

ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa67.htm