Repeats the specified text n number of times.
If the Repeat Quantity value exceeds the maximum the function will revert to 10000.
Rept([Text], [Number of Times])
Where:
Text is the string to repeat.
Number of Times is the number of times to repeat the specified text by.
Rule | Meaning |
---|---|
Rept("F", 6) | This function repeats the string "F" six times, which will return "FFFFFF" as the result. |
Rept("F", 10001) | This function repeats the string "F" 10000 times, the repeat quantity limit is 10000 |
Text | Number of Times | Outcome |
---|---|---|
"_" | 10 | __________ (Uses the underscore symbol to create a horizontal line) |
"Delete" | 0 | "" (the text is omitted) |
"-TEST-" | 5 | -TEST--TEST--TEST--TEST--TEST- |