?
Solved

Language drivers

Posted on 1998-04-16
5
Medium Priority
?
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

771 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