Working with Fields
Delphi enables you to access the fields of any dataset through the TField object and its descendants. Not only can you get and set the value of a given field of the current record of a dataset, but you can also change the behavior of a field by modifying its properties. You can also modify the dataset, itself, by changing the visual order of fields, removing fields, or even creating new calculated or lookup fields.
Field Values
It's very easy to access field values from Delphi. TDataSet provides a default array property called FieldValues[] that returns the value of a particular field as a Variant. Because FieldValues[] is the default array property, you don't need to specify the property name to access the array. For example, ...
Get Borland® Delphi™ 6 Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.