DriveWorks Pro 15: 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

Available for DriveWorks Projects only. See New Project Wizard for information on project types.

REPT( [Text], [Number of Times] )

Repeats the specified text n number of times.

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-

Table of Contents