Every example I've seen for accessing databases in C++ Builder uses visual components. What I'd like to do is work with dBase files (*.dbf) in a non-GUI way one record at a time, field by field. Is this doable?
:o
For example, I have several *.dbf's all have the same name and structure, but are stored in separate city directories, C:\Dallas, C:\Detroit, C:\NewYork, etc. I want to create a new database that has some of the fields from each city.dbf and a new CityName field to store the associated city name as I read thru each city.dbf one record at a time and copy the desired field subset. At a lost, any ideas.
:confused:
Yes, I am new to the db features of C++ Builder. So please be kind, Rick
:)
Okay, my problem was understanding what a TDataSet was. It's a parent class, from which TTable objects are derived. The methods Prior(), Next(), First(), and Last() are inherited from TDataSet and available for use in TTable objects.
I created a GUI form, but loaded it with data-ignorant objects ((other than a TDataSource & a TTable). Rick
Sample source code follows: