No problem. I'd definitely try it though - I've been bitten before by the docs saying things that weren't quite true! Pete Molly's Revenge <http://www.mollysrevenge.com>
On Thu, Jul 14, 2011 at 3:58 PM, Jerry J <j...@jhj.com> wrote: > Aha! The docs say so! Learned something new today. > > Thanks Pete, > Jerry > > On Jul 14, 2011, at 3:51 PM, Pete wrote: > > > Doesn't setting the wholematches to true deal with this? > > Pete > > Molly's Revenge <http://www.mollysrevenge.com> > > > > > > > > > > On Thu, Jul 14, 2011 at 3:35 PM, Jerry J <j...@jhj.com> wrote: > > > >> On Jul 14, 2011, at 2:12 AM, Keith Clarke wrote: > >> > >>> ...ah yes, of course, thanks Jim - I forgot that 'delete item y' is not > >> the same as 'delete item *called* y' ! > >>> > >>> So, would itemoffset help...? > >>> > >>> put "1,2,3,4,5,6" into theNumbers > >>> repeat until theNumbers is empty > >>> put any item theNumbers into n > >>> do something > >>> delete (itemOffset(n, theNumbers)) from theNumbers > >>> end repeat > >> > >> In the case of 1,2,3,4,5,6 itemOffset will work, but a warning about > >> itemOffset: > >> itemOffset("2","23,24,2") returns 1 because the string "2" matches the > >> first 2 of 23. This is not applicable to this exercise, but might save > >> somebody some trouble. In a previous project I assumed that it looked > for a > >> matching *item*, but in fact it looks to match a *string*. Arrgh. The > docs > >> are correct, by the way. > >> > >> --jhj > >> > >> > >> _______________________________________________ > >> 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 > > _______________________________________________ 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