String:Dup(text, copy, return)
Makes a series of duplicated text.
-
Number copy - number of times to copy.
String return - a String variable to hold the duplicated text.
This function is faster than using:
for (i=0; i LT 5; i++) {
myStr = myStr + "Hello";
}
function main() {
Var:String myStr = "Hello";
String:Dup(myStr, 5, myStr)
Konsol:Log(myStr) //see the log for "HelloHelloHelloHelloHello"
}