Repeats a string a specified number of times
#include <String.au3>
_StringRepeat ( $sString, $iRepeatCount )
$sString | String to repeat |
$iRepeatCount | Number of times to repeat the string |
Success: | a string with specified number of repeats. |
Failure: | an empty string and sets the @error flag to non-zero. |
@error: | 1 - One of the parameters is invalid |
#include <MsgBoxConstants.au3>
#include <String.au3>
; Repeat the string "+-" forty times.
MsgBox($MB_SYSTEMMODAL, '', _StringRepeat("+-", 40))