On Apr 9, 2012, at 9:06 PM, Nicolas Cueto wrote: > > > If only it truly were that simple... > > In my example, lineOffset would return "3" for "is". But "5" is what I'm > after.
Sorry, setting the wholematches to true then doing lineoffset will get you whole matches for lines. Instead: set the wholematches to true put wordoffset("is",m) into ww put the number of lines of word 1 to ww of m into whichline -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig _______________________________________________ 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