Vote UpVote

Stepping through Values in a Delphi for Loop

Marco's Tech Blog РThere has been a recent request to add to for loop in the Object Pascal language the ability to add a step, that is an increment different from one. Here is an alternative implementation using a for..in loop and a custom enumerator. Once I saw the request it reminded me of a demo I have in my Object Pascal Handbook (which originally came from my Delphi 2007 Handbook), The demo is available at https://github.com/MarcoDelphiBooks/ObjectPascalHandbook/ blob/master/10/NumbersEnumerator/NumbersEnumerator_MainForm.pas and shows how to build an enumerator over a range of numeric value. The only ...
Favorite? Off-Topic? marcocantu @ 2016-02-29 10:03


Visits: 1518
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)