Peter and Charles, FWIW, I always use:
delete last char of theList instead of put line 1 to -1 of theList into theList -- no trailing return It works with "item" lists, too and doesn't throw an error if theList is "" On Sunday, July 22, 2012, Peter M. Brigham wrote: > > repeat with n = 1 to nbr > if not the hilite of button n of me then next repeat > -- the above line could go first > put the short name of button n of me into tName > put counter "." && tName & cr after theList > -- combine the two repeat loops > add 1 to counter > end repeat > put line 1 to -1 of theList into theList -- no trailing return > -- Chipp Walters CEO, Altuit, Inc. _______________________________________________ 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