How can data controls be used with OO applications?
If you have a Customer object through which all access to Customer's attributes is routed, how can a data grid be used to list all customer names? If the data table is linked to the grid, independence of the logic code from the data structure is lost. To avoid that, retrieving the names via the Customer object will require looping till EOF is detected (somehow).
Similar issues occur with updates from edit controls, replacing built-in functions with calls to the Customer object, which then has to include lengthy SQL update statements.
The benefits of OO apps appear to be discounted by the loss of Delphi's data control facilities. Or am I missing something?
If you have a Customer object through which all access to Customer's attributes is routed, how can a data grid be used to list all customer names? If the data table is linked to the grid, independence of the logic code from the data structure is lost. To avoid that, retrieving the names via the Customer object will require looping till EOF is detected (somehow).
Similar issues occur with updates from edit controls, replacing built-in functions with calls to the Customer object, which then has to include lengthy SQL update statements.
The benefits of OO apps appear to be discounted by the loss of Delphi's data control facilities. Or am I missing something?