Tag Archives: FieldByName

FieldByName, FindField: too convenient to be honest

I don’t know about you, but I can’t count anymore the number of times I’ve seen this code pattern (in code snippets online as well as in production code): while not ADataSet.Eof do begin […] ADataSet.FieldByName(‘MyFieldName1’).SomePropertyOrMethod; ADataSet.FieldByName(‘MyFieldName2’).SomePropertyOrMethod; […] ADataSet.Next; end; … Continue reading

Posted in Coding standard, Delphi, Quality | Tagged , , , , , | 36 Comments