Most likely yeah. I wouldn't swear 100% (I like to TRY first lol) but it SHOULD work.
On Sun, Apr 5, 2015 at 2:40 PM, Peter Haworth <p...@lcsql.com> wrote: > Wow, didn't know that, thanks. > > The dictionary doesn't give any clue that's possible, just uses "container" > as what follows "in". Does that mean that anywhere the dictionary uses the > word container, it can be a function call? > > 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 1:24 PM, Mike Bonner <bonnm...@gmail.com> wrote: > > > As long as you wrap your function in parens so that it forces evaluation > > first, then yeah. Have the function do your filter, and then return the > > filtered data. (not positive you even need the extra parens, but its a > > habit for me in cases like this.) > > > > repeat for each doesn't really care where the list comes from, so an > inline > > function call is just fine. > > > > On Sun, Apr 5, 2015 at 2:18 PM, Peter Haworth <p...@lcsql.com> wrote: > > > > > 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 <bonnm...@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 < > > rdim...@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 > > > > > rdim...@evergreeninfo.net > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > 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 > > > > > > > _______________________________________________ > > > 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 > > > _______________________________________________ > 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