The Art of Delphi Programming – Sometimes combining different programming techniques reveals the hidden beauty of a programming language. A few years ago I was able to create such a thing with some older and newer language features. The outcome revealed some kind of magic that really amazed myself. The recipe is pretty simple: take an enumerator, mix it with a class helper and pour it over an invokeable custom variant. A what? Forget it for the moment and let’s start at the beginning. The idea was to iterate over a dataset in an easy way avoiding that tedious writing like: dataset.First; while not dataset.EOF do begin ...
Visits by Source
Users who voted for this posting