repeating string

Jerry Jensen jhj at jhj.com
Sun Feb 9 00:54:19 EST 2014


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





More information about the use-livecode mailing list