Replicates a string the specified number of times.
sNew = Replicate (sOrig, iCopies)
Variable | Description |
---|---|
sNew | The returned copies. STRING. |
sOrig | The string to replicate. STRING. |
iCopies | The number of copies to concatenate and return. INTEGER. |
Replicate returns a string made up of iCopies copies of the input string sOrig, concatenated. If sOrig is an empty string (""), Replicate returns an empty string.
Print ("Four A's -> {Replicate ("A", 4)}.") // Prints: Four A's -> AAAA