Reverse a list

Mike Kerner MikeKerner at
Thu Feb 12 14:11:38 EST 2015

I'm feeling a delimiter argument coming on

On Thu, Feb 12, 2015 at 2:04 PM, J. Landman Gay <jacque at>

> On 2/12/2015 12:54 PM, Peter Haworth wrote:
>> Lets say for example you had
>>> >a list of 10,000 customers and their email addresses. Most customers do
>>> >have an email, a few don't and it just so happens that your first
>>> customer
>>> >Aardvark, and last customer, Zoe, don't have email. If you read just the
>>> >emails into an LC variable the first line will be blank and you'll have
>>> >9999 lines. If you use the LC provided functions thus far presented to
>>> >reverse the data, you'll end up with the first line not being blank, and
>>> >9998 lines.
>>> >
>> I haven't run any of the LC scripts to do this but if that's true, then
>> they don't achieve the original objective of reversing the list.
> I don't think it's true. Using LC scripts, the first and last lines will
> be terminated by a CR and the line count won't change. The first and last
> lines will have no values but are still terminated by a CR, which is what
> determines the count.
> --
> Jacqueline Landman Gay         |     jacque at
> HyperActive Software           |
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."

More information about the use-livecode mailing list