Repeatstring - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

498

RepeatString

Returns a string created from string being repeated a specified number of times.
See also CJustify, LJustify, and RJustify.
Syntax
RepeatString( string , count )
string
String being repeated.
count
Number of repeats.
Examples
<!--- 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> being 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>
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents