If the array is indexed from 1 with no gaps, you can do repeat with I = 1 to item 2 of line 1 of the extents of myArray
Alex > On 2 Sep 2020, at 15:54, David Bovill via use-livecode > <use-livecode@lists.runrev.com> wrote: > > I’m pretty sure there must be a way to efficiently loop through numerically > indexed arrays > > Repeat for each key and repeat for each element does not seem to sort the > keys in numeric order,. Of course I can get the keys and sort them before > repeating - but is there a more efficient way? > _______________________________________________ > use-livecode mailing list > use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode