Rept Function
Description:
The text value repeated a number of times.
Returns:
Text
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Text | The text to be repeated. |
2 | Whole Number | The number of times it is repeated. |
Examples:
When using functions inside a field, remember the field brackets:
{Rept(VariableName), 4}
Expression | Result |
|---|---|
Rept( "a", 3 ) | "aaa" |
Rept( "ab", 2 ) | "abab" |
Rept( "abc", 0 ) | "" |