Vista Software
Tip: Converting from TApolloDataSet to TApolloTable

Converting from TApolloDataSet to TApolloTable

Applies to: Apollo VCL

This article explains how to quickly convert Apollo applications that use TApolloDataSet to TApolloTable. Apollo VCL 5 introduced TApolloTable. Prior to version 5, Apollo supplied a component named TApolloDataSet. Both components are identical in functionality, however TApolloDataSet is now obsolete and developers should use TApolloTable.

The following steps explain how to convert from TApolloDataSet to TApolloTable:

  1. Backup the form and unit (.DFM and .PAS) files you will be converting
  2. Open the form (.DFM) that has the TApolloDataSet component(s)
  3. Press Alt-F12 to view the form in text format
  4. Press Ctrl-R to do a search and replace operation and change all "TApolloDataSet" to "TApolloTable"
  5. Once finished, press Alt-F12 to switch back to normal form view

At this point, you should see the new TApolloTable component icon on the form. You are halfway done converting this unit. The next couple steps will complete the process:

  1. While viewing the form, press F12 to switch to the form's associated .PAS file
  2. Press Ctrl-R to do the same search and replace operation to change all references of "TApolloDataSet" to "TApolloTable"

That's it, you're done. You can perform this technique on any form you want to convert. If you experienced problems, restore your backup files and try again.

Back
Apollo Database Engines