Getting ready

In this recipe, you'll see how to use class helpers to add iterators (or a sort of iterator) to the TDataSet class, so that any other TDataSet descendants, even from another vendor, can automatically support this kind of iterator. Moreover, you'll also add a SaveToCSV method, so that any TDataSet can be saved in a CSV file with only one line of code.