Page 1 of 1

insert into range of array

Posted: Sat Dec 18, 2010 5:02 am
by kwinkler
I'm guessing this cannot be done in LiveCode (since I can find no reference), but is it possible to simply insert a value into a range of an array, such as-

put 10 into myArray[4-6]
or
put 10 into myArray[4 to 6] ?


It seems that a repeat loop is the only way to accomplish this.

Re: insert into range of array

Posted: Mon Jan 10, 2011 1:45 am
by Mark
kwinkler,

Yes, you will need a repeat loop. Even with large data sets, repeat for each will probably be faster than anything else in this case.

Mark