# Function Reference

# _StringRepeat

Repeats a string a specified number of times

#include <String.au3>
_StringRepeat ( $sString, $iRepeatCount )

## Parameters

$sString | String to repeat
$iRepeatCount | Number of times to repeat the string

## Return Value

Success: | a string with specified number of repeats.
Failure: | Empty string and sets the @error flag to non-zero.
@error: | 1 - One of the parameters is invalid

## Example

    #include <MsgBoxConstants.au3>
    #include <String.au3>

    ; Repeat the string "+-" forty times.
    MsgBox($MB_SYSTEMMODAL, '', _StringRepeat("+-", 40))