Replicate()
This function lets you create a string composed of multiple copies of another string.
Usage |
cNewString = REPLICATE( cString, nTimes ) |
Parameter |
Value |
Meaning |
cString |
Character |
The string to be repeated to produce the result. |
nTimes |
Numeric |
The number of times to repeat cString. |
cNewString |
Character |
A string consisting of nTimes copies of cString. |
Example |
? REPLICATE("X", 30) && Returns a string of 30 X's ? REPLICATE("Fox", 3) && Returns "FoxFoxFox" |
See Also |