I think it came in with 6.5. Would be interesting to see how it performs compared to a repeat loop. I always like less lines of code as ling as things still work well.
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 Tue, Jun 17, 2014 at 11:17 AM, <la...@significantplanet.org> wrote: > Thanks Pete, > Which version exactly is it? > Larry > > ----- Original Message ----- From: "Peter Haworth" <p...@lcsql.com> > To: "How to use LiveCode" <use-livecode@lists.runrev.com> > Sent: Tuesday, June 17, 2014 11:25 AM > Subject: Re: which is faster for searching? > > > You might want to try the filter command too, especially the new version >> that has a lot more options including the ability to put the qualifying >> lines into a different container. >> >> 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 Tue, Jun 17, 2014 at 7:22 AM, <la...@significantplanet.org> wrote: >> >> I have a large variable containing about 3000 lines of data - each line >>> about 100 characters. >>> >>> I want to search through the variable and find all the lines that contain >>> a specified string >>> >>> Should I use (repeatedly) "lineoffset...", or should I use "repeat for >>> each line..." or maybe some other faster way? >>> >>> Or with only 3000 lines of data, does it even matter? >>> >>> TIA >>> Larry >>> _______________________________________________ >>> 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