Home Search

DriveWorks Solo 22
Rept

Send Feedback

Rept

Repeats the specified text n number of times.

The Repeat Quantity has a maximum value of 10000 that can be applied.

If the Repeat Quantity value exceeds the maximum the function will revert to 10000.

Syntax

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.

Examples

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

Example Outcomes

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-