Connecting new component to multiple Databases!
Posted on 2006-05-29
I'm working on a helper component for database programs. This component
derived from TComponent and connect to a TTreeView and load a tree structure
into TTreeView. I want my component could work with multiple Databases like
ADO, BDE, Interbase, DBISAM, etc.
What's the best solution for that? If I set my connection property to
TADOConnection then my component could not work with Paradox. If I set my
connection property as TCustomConnection, in the component I want to create
a DataSet and connect to database. then I don't know to create with kind of
DataSet? TADOTable, TTable, TIBTable, TDBISAMTable?
Does somebody know a good soltution?