The Art of Delphi Programming
– A couple of years ago I wrote a two-part article about a dataset enumerator: A Magical Gathering – Part 1 and Part 2. Well, things evolved a bit since then and I wondered how one would implement something similar given the current features of Delphi. Actually I am following here a suggestion from commenter Alan Clark. The enumerator is implemented quite similar to the original version using a class helper, which makes it available for all TDataSet descendants. The variant part is completely replaced with a generic approach allowing type safety as well as code completion. Let’s have ...