Solved

Language drivers

Posted on 1998-04-16
5
188 Views
Last Modified: 2010-04-06
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.
0
Comment
Question by:KE
  • 2
  • 2
5 Comments
 

Expert Comment

by:SQLwill
ID: 1361589
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.
0
 
LVL 3

Author Comment

by:KE
ID: 1361590
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.

0
 

Expert Comment

by:SQLwill
ID: 1361591
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
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 150 total points
ID: 1361592
Hi KE,

I suggest to have a look at this page :

http://www.borland.com/devsupport/bde/bdeapiex/dbiopencfginfolist.html

If you still can't get out of the problem (or you can't change example to your needs), just give a ring a I'll help you figuring it out.

Regards, Zif.
0
 
LVL 3

Author Comment

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

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question