-
Recent Posts
Recent Comments
- mohamed on FieldByName, FindField: too convenient to be honest
- J.-G. Yu on Using Richedit 4.1 with D2010
- J.-G. Yu on Using Richedit 4.1 with D2010
- J.-G. Yu on Using Richedit 4.1 with D2010
- Jochen S. on The Unfortunate Effect of WM_SETREDRAW
Tags
- $Message
- A little bit of zis
- AutoSave
- Best practices
- Bug
- Code Camp
- CodeWay
- Coding standard
- ComCtrls
- Community
- Compiler directive
- Conference
- Configuration
- Data
- Debugger
- Delphi
- Explorer
- FieldByName
- IDE
- inherited
- Jobs
- LockWindowUpdate
- Maps
- Memory Leaks
- Meta
- Motorcycle
- Optimization
- Personal
- Quality
- Readers
- Resources
- RichEdit
- SendTo
- shell
- Sounds
- Speech
- Statistics
- TIOBE
- UI
- User Interface
- VCL
- Warnings
- Windows
Archives
Categories
Blogroll
Meta
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 Best practices, Coding standard, Delphi, FieldByName, Optimization, Quality
36 Comments