Repeat syntax addition

Peter Haworth pete at lcsql.com
Sun Apr 5 16:18:41 EDT 2015


Hi Mike,
I like that.  Are you saying you can do that now?

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:31 PM, Mike Bonner <bonnmike at gmail.com> wrote:

> 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
> >
> _______________________________________________
> 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