Repeat syntax addition
Peter Haworth
pete at lcsql.com
Sun Apr 5 16:11:22 EDT 2015
Nic Ralph. Useful where you don;t want to incur the overhead of repeat with
but still need a counter.
Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
On Sun, Apr 5, 2015 at 12:03 PM, Ralph DiMola <rdimola at evergreeninfo.net>
wrote:
> Wouldn't it be nice if you could:
>
> Repeat for each line tLine in tLines index tIndex
> End repeat
>
> Where tIndex goes from 1 to (in this case) the number of lines in tLines.
> With such an elegant repeat loop in LC it kills me to do a:
>
>
> Local tIndex
> put 1 into tIndex
> Repeat for each line tLine in tLines
> Add 1 to tIndex
> End repeat
>
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
>
>
> _______________________________________________
> 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