Returns a string created from string repeated a specified number of times.
RepeatString(string, count)
| Parameter |
Description |
|---|---|
| string |
String to repeat |
| count |
Number of repeats |
<!--- This example shows RepeatString --->
<html>
<head>
<title>
RepeatString Example
</title>
</head>
<body bgcolor = silver>
<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("<BR>", 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>
</body>
</html>