Thanks for the code examples and expllanations, Kay. I learned a whole bunch of things I did not know.
John Balgenorth On Oct 6, 2014, at 7:31 PM, Kay C Lan <lan.kc.macm...@gmail.com> wrote: > On Tue, Oct 7, 2014 at 6:37 AM, <la...@significantplanet.org> wrote: > >> It is sort of strange to me that I want more than 1 word and so I used >> "words", > > As to how grammatically correct it is I'm sure Richmond could tell us, > but I like to think of it this way, I'm not actually specifying plural > what I'm doing is specifying a start point and an end point and these > are always singular. > > char 1 to char 21 > word 5 to word -2 > > this is then conveniently shorthanded to: > > item 2 to 22 > token 34 to -9 > byte -8 to -1 > > Also, if I ask myself, how do I get every word from a variable - note > I've used the singular, so the answer is, word 1 to -1 --again I use > the singular > > And just in case it comes up, remember a word in LC includes any > punctuation that may follow what we typically think of as a word, in > the message box > > put "this is, a word" into tStore > put word 1 to 2 of tStore into msg > > if you don't want the punctuation you might find trueword is what you need > > put "this is, a word" into tStore > put trueword 1 to 2 of tStore into msg > > HTH > > _______________________________________________ > 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