Doesn't sound too difficult. Have you started it at all and run into any
particular troubles, or is this more of a generic informational request?
In an app I'm working on, I created a class to handle all of the db
functions, in my case so that I could create an array of this class for
multiple databases, but you could easily use the same sort of
methodology, and in your methods have it check for the preference switch
then run the routines based on that switch. At any particular point your
code could call objectInstance.getTableNames(dbname as string), then the
interior space of that method could check the value of, say, PreferredDB
and then decide between any number of routines, depending on how that db
works.
Good centralization of functions makes for easier maintenance, and is
just plain fun.
Kirt Cathey wrote:
Hi All.
Want to setup a program that can access multiple types of databases.
But not simultaneously.
For example, if the user in preferences has setup mySQL, then mySQL
will connect and be accessible globally. Same thing with postgres, and
realsqldb.
Regards,
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>