Replicate()
Return a string repeated a specified number of times.
Syntax
Replicate(<cString>, <nCount>) --> cRepeatedString
Arguments
<cString> --> is the character string to repeat.
<nCount> --> is the number of times to repeat <cString>.
Returns
Replicate() returns a character string up to a maximum of 65,535 (64K) characters in length. Specifying a zero as the <nCount> argument returns a null/empty string ("").
Description
Replicate() is a character function that creates a string of a specified length containing a specified character. Replicate() is similar to the Space() function which returns a specified number of space characters. Replicate() is more flexible as it allows you to specify any character.
Examples
Replicate('!', 3)
* Result = '!!!'
Replicate('John ', 2)
* Result = 'John John '
____________________________
Related Topics: