Jim:

"This is pretty much the same way you enumerate in reverse order in the
other languages I use.”
Thank you for posting that.

I brought this up on the Forum a while back and I even brought it up in a
tech support call but…nada.

Interesting thread -
https://forums.4d.com/Post/EN/34415270/1/34415271#34415271

A sage suggesting .reverse, as you have, and another steering the poster
toward a For loop.

Reminds me of:
“Less filling!
"Tastes great!”

I’ll go with .reverse

--
Douglas von Roeder
949-910-4084


On Fri, May 1, 2020 at 5:41 PM James Crate via 4D_Tech <[email protected]>
wrote:

> On Apr 30, 2020, at 9:36 PM, Douglas von Roeder via 4D_Tech <
> [email protected]> wrote:
> >
> > Another WTF is that you can’t iterate from the end of a collection to the
> > start. You can reorder the collection and then run a For each loop but
> > that’s a complete kludge.
>
> For each ($item;$collection.reverse())
>   // do some stuff
> End for each
>
> This is pretty much the same way you enumerate in reverse order in the
> other languages I use.
>
> Jim Crate
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to