STRS Function
Repeats the contents of each element in a dynamic array a specified number of times.
Syntax
STRS(dynArray, numRepeats)
Syntax Elements
dynArray A DataBasic expression that evaluates to a dynamic array.
numRepeats The required number of repeats. Decimal fractions are truncated (for example, 3.9 generates 3 repeats).
Return Value
A dynamic array with the same structure as dynArray, but with each element replaced by the original contents repeated numRepeats times (see Example).
If numRepeats evaluates to 0, an empty string is returned.
Example
ABC="X":@AM:"Y":@AM:"Z" NEWARY = STRS(ABC, 3)
Sets NEWARY to "XXXAMYYYAMZZZ".