Page 2 of 2

Re: Repeat / dupplicate a string

Posted: Sat Jul 04, 2020 7:49 pm
by Olli
Little John wrote:By the way ... In case you just want to repeat 1 character you can use the following, which is very fast:

Code: Select all

Macro RepeatChar (_count_, _char_)
   LSet("", _count_, _char_)
EndMacro
Very good too. Fred have had a period when he optimized the string library. Thank you for these efficient recalls. :)