[fpc-devel] for-in-index loop

Sven Barth pascaldragon at googlemail.com
Fri Jan 25 20:54:54 CET 2013


On 25.01.2013 20:24, Alexander Klenin wrote:
>> MyDataSet.First;
>> while not MyDataset.Eof do begin
>>    // ...
>>    MyDataSet.Next;
>> end;
>> // on a sidenote: what about a TDataSet enumerator? :)
>
> It is not clear what should loop variable contain:
> for v in MyDataSet do ... -- what is v?

Right... forget that idea. (so much for sanity ^^)

Regards,
Sven



More information about the fpc-devel mailing list