Yeah, it is definitely an awesome feature! I think it's faster too, when
iterating over a large set of records, because you're not making the
NEXT RECORD() call every time (at least in the very limited benchmarking
tests I did ...)

For instance, looping through 60,000 records and writing out a field
took about 3.3 seconds using "for each" syntax, and 5.3 seconds using a
standard "for($i;1;records in selection)" syntax.

The time difference you are seeing there probably has to do with the savings in runtime overhead of parsing and executing NEXT RECORD() 60,000 times.

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to