Hmmm... there are a couple of ways.
Here's one which involves inserting before the first element: srcList =[1, 2, 3, 4, 5, 6] revList =[] repeat with thisEntry in srcList addAt(revList, 1, thisEntry) end repeat Another is counting backward and adding in, but the above one should do you just fine. - Tab At 03:15 PM 2/8/02 +0100, Heike Schmidt wrote: >hello everyone, > >i'm a relative newbie to this list, so please dont get mad if this seems a >bit pedestrian. > >here's my question: >is there a simpler way of turning a list back to front than something like >this (the first value needs to be the last and vice versa)? is there some >sort of "swop around" command that i just haven't found yet? >list = [1, 2, 3, 4, 5, 6] >oldlist = duplicate(list) >newlist = [] >counter1 = list.count > >repeat with counter2=1 to list.count >newlist[counter2] = oldlist[counter1] >counter1 = counter1 - 1 >end repeat > > >thank you very much, >heike .-) > >------------------------------------------------------------ > > heike schmidt > > gekko mbh > rathausallee 10 > 53757 sankt augustin > germany > > fon 02241 - 944 97 39 > fax 02241 - 94497 33 > web www.gekko.de > >[To remove yourself from this list, or to change to digest mode, go to >http://www.penworks.com/lingo-l.cgi To post messages to the list, email >[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L >is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
