RepeatString

Description

Returns a string created from string repeated a specified number of times.

Category

String functions

Syntax


RepeatString(string, count) 

See also

CJustify, LJustify, RJustify

Parameters

Parameter
Description
string
String to repeat
count
Number of repeats

Example

<!--- 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("&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>



</body>

</html> 





Banner.Novgorod.Ru