Mark, It makes it faster, but it doesn’t return any data. :-)
The number of lines in p = 0 Cheers Dave > On 9 Feb 2015, at 20:13, Mark Wieder <[email protected]> wrote: > > Dave- > > Using 'repeat for each' for the loop makes this faster yet. > > function arevers p > local t > local tNumElems > > split p by cr > put empty into t > put the number of lines in p into tNumElems > repeat for each line l in p > put p[tNumElems] & cr after t > subtract 1 from tNumElems > end repeat > return t > end arevers > > -- > Mark Wieder > [email protected] > > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
