Tricky! I never would have thought of that. Thanks a bunch.
Tim On Mar 23, 2011, at 2:51 AM, Mike Bonner wrote: > If you know the number of words in the field: > put the number of words in field "narrative" into tWords > > and you know the location of the found word: > put the number of words in (char 1 to (word 4 of tfound)) in field > "narrative" into tFoundWord > -- didn't try it, check syntax > > then you should be able to grab the number of words you want directly. Will > still need to make sure the word location isn't too close to the beginning > or end of the text, but if you wanted 5 words on either side of the found > word you could do: > put word (tFoundWord - 5) to (tFoundWord + 5) of field "narrative" & > the short ID of this card & cr &cr after tFoundList > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
