Hello all,
I have a basic question concerning migration of my Delphi code for databases I created years ago and still use. The databases were created using Database Desktop, for example, a radioactive material decay database named decay.db.
From my old Delphi 2007 Pro VCL Form Application, I would go to the BDE Tool Palette and drop a TTable component on my form (which defaulted to the name Table1). Under Properties, I would set the DatabaseName property to my database path, for example c:\file_path\. I would then set the TTable component's TableName property to decay.db. I could then set the Active property to True.
My next step would be to place a DataSource (default name DataSource1) onto the form and set the DataSet property to Table1.
At that point, if I had a TDBGrid component on the form, I would set the property of the DBGrid1 to Table1 and my database would be ready to go.
When I load my old code into Delphi 10.2, I get a message that the component TTable is missing. My question is this: I need to change my code so that I can still access my database (decay.db) without the TTable component that was required in Delphi 2007 Pro. The last thing I want to do is to have to make drastic changes in my different programs that have databases. Can someone please help me with how to use the new DataSource component and get my database active in 10.2?
Thanks in advance for any help.
Greg Madison