I think it's the equivalent behavior of the last line. If the last char is a cr, then the last line would be the last line with something in it. Makes sense if you think about it.
Bob On Aug 21, 2011, at 2:50 PM, Pete wrote: > It seems that if the last item in a string is empty, then trying to access > it by using "item -1" returns the penultimate item, not the last one. For > example, given the string "a,b," item -1 of that string comes back as "b". > This is on LC 4.6.2, OS X 10.6.8. Is this expected behavior? > > Pete > Molly's Revenge <http://www.mollysrevenge.com> > _______________________________________________ > 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 _______________________________________________ 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
