Changing LANGDRIVER at runtime 
Author Message
 Changing LANGDRIVER at runtime

I've got to open dBase Files in a Delphi-3-Application.
The problem is that I don't have control over the
driver settings in the global BDE-Configuration, so I have to
set the correct LANGDRIVER for the DBase driver at
runtime.

Does anybody know, how to do this ?

I've tried the following yet:

(1) Changing the driver setting of the session:

session.ModifyDriver('DBASE',<TStringList with "LANGDRIVER=...">);
This has no effect. Still the setting of the BDE configuration is used.

(2) Creating a new database object with the correct driver:
database: TDatabase ;
...
database.driverName:='STANDARD'
database.params.add('LANGDRIVER=...');

The parameter LANGDRIVER is ignored, because the driver STANDARD
doesn't know this parameter.
The drivername "DBASE" which has the LANGDRIVER-Parameter cannot be assigned
to TDatabase.driver.

Thank you for any help.
(Please answer via e-mail also)

Marc



Wed, 18 Jun 1902 08:00:00 GMT
 Changing LANGDRIVER at runtime

I've got to open dBase Files in a Delphi-3-Application.
The problem is that I don't have control over the
driver settings in the global BDE-Configuration, so I have to
set the correct LANGDRIVER for the DBase driver at
runtime.
Does anybody know, how to do this ?
I've tried the following yet:
(1) Changing the driver setting of the session:

session.ModifyDriver('DBASE',<TStringList with "LANGDRIVER=...">);
This has no effect. Still the setting of the BDE configuration is used.
(2) Creating a new database object with the correct driver:
database: TDatabase ;
...
database.driverName:='STANDARD'
database.params.add('LANGDRIVER=...');
The parameter LANGDRIVER is ignored, because the driver STANDARD
doesn't know this parameter.
The drivername "DBASE" which has the LANGDRIVER-Parameter cannot be assigned
to TDatabase.driver.
Thank you for any help.
(Please answer via e-mail also)
Marc



Wed, 18 Jun 1902 08:00:00 GMT
 Changing LANGDRIVER at runtime
I am not sure if I understand your question, but STANDARD is supposed to handle
both dBase and Paradox. If you want to deal with dBase-tables. just do it. All
it requires is to set the TableName to 'MYTABLE.DBF' or whatever (and of course
the DataBaseName to the according directory). HTH


Quote:

>I've got to open dBase Files in a Delphi-3-Application.
>The problem is that I don't have control over the
>driver settings in the global BDE-Configuration, so I have to
>set the correct LANGDRIVER for the DBase driver at
>runtime.

>Does anybody know, how to do this ?

>I've tried the following yet:

>(1) Changing the driver setting of the session:

>session.ModifyDriver('DBASE',<TStringList with "LANGDRIVER=...">);
>This has no effect. Still the setting of the BDE configuration is used.

>(2) Creating a new database object with the correct driver:
>database: TDatabase ;
>...
>database.driverName:='STANDARD'
>database.params.add('LANGDRIVER=...');

>The parameter LANGDRIVER is ignored, because the driver STANDARD
>doesn't know this parameter.
>The drivername "DBASE" which has the LANGDRIVER-Parameter cannot be assigned
>to TDatabase.driver.

>Thank you for any help.
>(Please answer via e-mail also)

>Marc



Wed, 18 Jun 1902 08:00:00 GMT
 Changing LANGDRIVER at runtime
Hi Wolfgang,

the problem is not how to open a dBaseTable, but how to change
the language setting of the dBase driver, so that language specific
characters can be read correctly.
STANDARD does not appear to be a real driver; in the BDE configuration
there are two separate drivers for dBase and Paradox.

Quote:
>I am not sure if I understand your question, but STANDARD is supposed to
handle
>both dBase and Paradox. If you want to deal with dBase-tables. just do it.
All
>it requires is to set the TableName to 'MYTABLE.DBF' or whatever (and of
course
>the DataBaseName to the according directory). HTH



Wed, 18 Jun 1902 08:00:00 GMT
 
 [ 4 post ] 

 Relevant Pages 

1. changing LANGDRIVER at runtime

2. Delphi 1: Change langdriver at runtime

3. Changing Paradox LangDriver in Code

4. How can I change LANGDRIVER of table programatically?

5. several LANGDRIVER with DBASE

6. LANGDRIVER

7. BDE langdriver

8. Need CYRILLIC langdriver for PDOX 8

9. LangDriver?

10. HEEEELP : Converting Table to new LangDriver

11. LangDriver Paradox

12. BDE LANGDRIVERS


 
Powered by phpBB® Forum Software