Solved

Language drivers

Posted on 1998-04-16
5
185 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now