7
votes
Vote UpVote

Shifting TFields in TDataSets Bound to TDBGrids: A Potential Source of Bugs in Your Code

Let's Get Technical – I've been working with Delphi since the beginning, with particular emphasis on database development. As a result, it's not often that I encounter a fundamental behavior of data-related components that catches me off guard. Well, it happened last week. And what I observed may be the source of an infrequent yet potentially disastrous bug in a large number of Delphi database applications.Here is what I observed: The TFields in an open TDataSet changed order at runtime. Specifically, a TField that was originally in the zeroeth position (DataSet.Fields[0]) at the time that I created the TDataset, ...
Favorite? Off-Topic? caryblog@jensendatasystems.com @ 2010-01-27 00:45

Statistics

Visits: 586
Votes: 7
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Charles Ardour
LachlanG
Sergio
TDelphiHobbyist
Tier777
vcldeveloper
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)