Repeat syntax addition
Mike Bonner
bonnmike at gmail.com
Sun Apr 5 15:31:04 EDT 2015
While not exactly whats been requested, this works pretty well:
repeat for each line tLine in (myFilter(sData,"abc*","with"))
I like the way a where clause reads as in the OP, but being able to use an
inline function for data generation is rather powerful, and if all you need
is a filter, setting up a function to do so is pretty straight forward.
On Sun, Apr 5, 2015 at 1: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