strRep Function

Repeats a string of characters.


str strRep(str _text, str _number)

Parameter

Description

_text

The string to repeat.

_number

The number of times to repeat the string.

A new string that contains the contents of the original string repeated the specified number of times.

The following example prints the text string ABABABABABAB.

static void strRepExample(Args _arg)
{
    str strL;
    ;
    strL = strRep("AB",6); 
    print strL;
    pause;
}

Community Additions

ADD
Show: