repeating string

Mike Kerner MikeKerner at roadrunner.com
Wed Feb 5 10:06:05 EST 2014


Mark,
I must have screwed something up the first time, because I wound up with
31, even though I expected 30.  When I just tested it, it came out at 30.

Alex's idea is also clever, but what if I am trying to repeat another
character, like "#"?


I was trying to avoid the solution Craig suggested by using a built-in
construct, which made me think that we should have something like

put 30 "a" into goop, but that is a recipe for failure, and
put 30 "a"'s into goop is almost unreadable


On Wed, Feb 5, 2014 at 4:38 AM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Hi Mike,
>
> Into item 29 gives you a string of 29 chars, after 29 makes a string of 30
> chars, into item 30 gives a string of 30 chars.
>
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour
> spaces. http://www.color-converter.com
>
> Buy my new book "Programming LiveCode for the Real Beginner"
> http://qery.us/3fi
>
> LiveCode on Facebook:
> https://www.facebook.com/groups/runrev/
>
> On 2/5/2014 04:14, Mike Kerner wrote:
>
>> <blink, blink, pregnant pause/>
>> That's clever.  It would be item 29, but that hardly matters.  What's even
>> more interesting about that is that
>> put space into word 29 of mySpaces
>>   will give me a string that's 1 character long.
>>
>>
>
> _______________________________________________
> 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