repeating string

Mike Kerner MikeKerner at roadrunner.com
Mon Feb 10 09:51:58 EST 2014


the BASIC RPT$ syntax is soooooooo not LC.  "of" might work, though.  I
also hate the * syntax.  Yes, I know what it means, but I'm a CS junkie.


On Sun, Feb 9, 2014 at 12:54 AM, Jerry Jensen <jhj at jhj.com> wrote:

> How about rpt(15,5) ? If you don't quote the "15", the numberformat would
> take effect, I guess.
>
> On Feb 8, 2014, at 9:41 PM, Geoff Canyon <gcanyon at gmail.com> wrote:
>
> > On Wed, Feb 5, 2014 at 9:06 AM, Mike Kerner <MikeKerner at roadrunner.com
> >wrote:
> >
> >> put 30 "a" into goop, but that is a recipe for failure, and
> >> put 30 "a"'s into goop is almost unreadable
> >>
> >
> > If we're devising syntax, I think some other languages use * as in:
> >
> > put 30 * "a" into goop
> >
> > This still runs into problems because of LC's typeless variables:
> >
> > put 5 * 15 -- puts 75
> > put 5 * "15" -- puts 1515151515
> > put 15 into x
> > put 5 * 15 -- puts 75
> > put "15" into x
> > put 5 * 15 -- still puts 75, nor should it change
> >
> > Perhaps "of"?
> >
> > put 5 of 15 -- puts 1515151515
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list