Reversing a list

John Tregea john at debraneys.com
Thu Apr 3 00:27:09 EDT 2008


Gotcha I think...

Maybe

repeat with x = (the number of lines of fld "file_list") down to 1
 put line x of fld "file_list" and return after tNewList
end repeat
delete the last line of tNewList
put tNewList into fld "file_list"

HTH

John

> Thanks John, but they are a collection of filenames gathered from
> sub-folders, so each folder's items are already sorted and the order
> of the folders is logical. I have no single work or item I can use for
> a sort, so I really just have to reverse the order of the lines.

Sarah
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list