REPEAT$ function

Purpose

Return a string consisting of multiple copies of the specified string.

Syntax

s$ = REPEAT$(count&, string_expr)

Remarks

The REPEAT$ function has the following parts:

count&

Is an integer-class expression, constant or variable, specifying the number of copies of string_expr to be included in the result.  REPEAT$ is very similar to STRING$ (which makes multiple copies of a single character).

string_expr

The string to be duplicated.

See also

CHR$, GUID$, NUL$, SPACE$, STRING$

Example

x$ = REPEAT$(5, "<*> ")

Result

<*> <*> <*> <*> <*>