repeating a string

xbury.cs at clearstream.com xbury.cs at clearstream.com
Mon Mar 21 01:45:25 EST 2005


On 21.03.2005 05:18:39 use-revolution-bounces wrote:
>Sorry about the partial repeat - lappie issues...
>
>I can't for the life of me remember how to repeat a string, and of
>course I can't find anything in the docs either.
>
>I could do "a"&"a"&"a", but I thought there was something like "A"*3
>or such available.

yes there is but you have to make it yourself ;)

function stringRepeat str, reps
  repeat reps
    put str after nustr
  end repeat
  return nustr
end stringRepeat

cheers
Xavier


-----------------------------------------
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE    Internet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.    The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.    END OF DISCLAIMER


More information about the use-livecode mailing list