4 Replies Latest reply on Apr 14, 2011 11:33 AM by med

    building a string by replicating characters

    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.