This is exactly what I'd expect as 'item' uses a delimiter. If you had 'space' as the delimiter you could then use:
set the itemdel to space; put "test" into tString; put "test3" into item 3 of tString; put tString result: test test3 (with 2 spaces between the two words) now: put the number of words in tString result: 2 And this is still correct. Look at the definitions of item, word, I would want LC to put "test3" directly after "test" even if I did for some bizarre reason decide to put it after word 63556 of tString as this would be expected behavior. I would not want it to throw back an error or place several spaces between the two words. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs <http://pidigital.co.uk/emailTCs.rtf> Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On 11 September 2017 at 23:10, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Curiously then, you can have a string with 1 item, then put tWord into > item 3 of tString, and it will happily create an empty item 2 so that there > is an item 3 to put something into. ex. > > put "test" into tString;put "test3" into item 3 of tString;put tString > produces: test,,test3 > > put "test" into tString;put "test3" into word 3 of tString;put tString > produces: testtest3 > > Doesn't that seem like an anomaly to anyone? > > Bob S > > . > > > > On Sep 11, 2017, at 15:05 , Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Actually that was a typo. Put tWord after word 2 of me is what I meant. > > > > Bob S > > > > > >> On Sep 11, 2017, at 14:11 , Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> > >> put tWord after word 2 of me into me > > > > > > _______________________________________________ > > 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 > _______________________________________________ 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