On an unlocked text field I tried this: on selectionchanged put word (the number of words in char 1 to (word 2 of the selectedchunk) of field 1) of field 1 into field 2 end selectionchanged
And it works fine. On Sat, May 19, 2012 at 12:36 PM, Bill Vlahos <bvla...@mac.com> wrote: > Words are defined by LiveCode to include punctuation. > put word 2 of "the check-up is good" returns "check-up" > > The clickText function doesn't include punctuation in the word. > If you put the phrase "the check-up is good" in a locked field, > clickText only returns either "check" or "up" depending on which part is > clicked. > > How do I include punctuation in the entire word the user clicks on? > In this example I want "check-up" returned > > Bill Vlahos > > _______________________________________________ > 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