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.
insert into range of array
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: insert into range of array
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
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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode