> How does one iterate backwards through a collection? I realize that I can > reverse the collection and iterate forward through it but there’s > no contraindication to iterating backward.
Yes, it’s currently not implemented. As you said, collections have a method „reverse()“. -- Grüße/Regards, [heubach-media] | Christian Sakowski [email protected] Tel: +49/(0)40/41 455 455 > Am 14.11.2019 um 23:00 schrieb Douglas von Roeder via 4D_Tech > <[email protected]>: > > *C_COLLECTION*($coll_C) > > $coll_C:=*New collection*("Curly";"Moe";"Larry") > > > *C_TEXT*($name_T) > > *For each* ($name_T;$coll_C;0;2) > > > *ALERT*($name_T) > > > *End for each* > > > results in alerts for “Curly”, “Moe”, and “Larry". > > > > > *For each* ($name_T;$coll_C;0;2) > > > *ALERT*($name_T) > > > *End for each* > > > > results in alerts for “Curly” and “Moe”. That’s expected because the docs > state “end is excluded”. > > > > > *For each* ($name_T;$coll_C;2;0) > > > *ALERT*($name_T) > > > *End for each* > > > results in no alerts. That’s not expected. > > > How does one iterate backwards through a collection? I realize that I can > reverse the collection and iterate forward through it but there’s > no contraindication to iterating backward. > > > > -- > Douglas von Roeder > 949-910-4084 > ********************************************************************** > 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] **********************************************************************

