how to do this type of search

Mike Bonner bonnmike at gmail.com
Mon Apr 9 22:07:37 EDT 2012


Yeah, i'm too fuzzy to answer questions lately. The proper method would be
put wordoffset("is",m) into ww -- m being the container
put lineindex(word ww of m) into tLine

On Mon, Apr 9, 2012 at 7:33 PM, Mike Bonner <bonnmike at gmail.com> wrote:

> If using 5.5 there is also lineindex
> put lineindex(wordoffset("is,m)) into ww
> ^-- should give the line the word is found on.
>
>
> On Mon, Apr 9, 2012 at 7:28 PM, Peter M. Brigham, MD <pmbrig at gmail.com>wrote:
>
>> 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
>> pmbrig at gmail.com
>> http://home.comcast.net/~pmbrig
>>
>>
>>
>>
>> _______________________________________________
>> 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