AnsweredAssumed Answered

building a string by replicating characters

Question asked by med on Apr 14, 2011
Latest reply on Apr 14, 2011 by med

Title

building a string by replicating characters

Post

Is there a simple way of building a string by replicating a character a number of times which varies according to calculations.

In other words is there a function like    ......    astring=replicate("x";$repetitions)

Of course I can do this using a loop but I am looking for cleaner coding because this is going to be used allover, again and again.

Outcomes