Link to home
Start Free TrialLog in
Avatar of KE
KE

asked on

Language drivers

How do you specify a language driver programatically.
I need to change the language driver for a paradox table, when I create the table at runtime. I do not wish to use the BDE configuration utility.
Avatar of SQLwill
SQLwill

You should use the DBICreateTable call to create the table at run time.  Using the optional parameters, you can declare a different language driver when the table is created.  If you need to get the optional parameters, you may use the BDE API function DbiOpenCfgInfoList.  The BDE API help offers extensive support on these functions.
Avatar of KE

ASKER

Thanks,

I've already looked at the DBI functions, but they seem a little "harry" for such a simple matter - I was thinking of maybee setting a parameter in the TDatabase or use the ModifyDriver in TSession.
The DBICreateTable takes a ton of parameters, and is not the easiest thing to implement (even there's a ported example).
Anyway thanks a lot - I'll reopen the question to see if some could provide an easier solution - otherwise the points is all yours.

No problem - i know how nasty those BDE functions can get.  I don't think, however, that there will be another way to change language drivers at run time.  If you do find it, i would love to hear how it's done. =]  In the meantime, I'll poke around TSession and TDatabase myself to see what I can come up with.

Regards
ASKER CERTIFIED SOLUTION
Avatar of ZifNab
ZifNab

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KE

ASKER

It's seems like an easier solution, so I'll try to implement it and return later with a grade.
Thanks !