Changing Paradox LangDriver in Code 
Author Message
 Changing Paradox LangDriver in Code
Does AnyOne Know How Can I Change The LangDRiver In code
i want to do it  during the install of my app after installing the bde
the langdriver i need to choos is: paradox 'hebrew'
i tried to do it as with the tssision but after i tried to run any app
that access the bde i get : invalid token ...
trhe problem will bw fixed if a chacge the langdriver maually in the
control panel  in the bde adminstrator

Thanks
Tal



Wed, 18 Jun 1902 08:00:00 GMT
 Changing Paradox LangDriver in Code

Here is the proc that does it ...

uses
    SysUtils, Registry;

procedure SetLangDriver(s:string);
var
    Reg:TRegistry
begin
 Reg.RootKey:=HKEY_LOCAL_MACHINE;
 Reg.OpenKey('Software\Borland\Database
Engine\Settings\Drivers\Paradox\Init',True);
  if UpperCase(Reg.ReadString('LANGDRIVER'))<>UpperCase(s) then
   Reg.WriteString('LANGDRIVER',s);
  Reg.CloseKey;
end;

Quote:

>Does AnyOne Know How Can I Change The LangDRiver In code
>i want to do it  during the install of my app after installing the bde
>the langdriver i need to choos is: paradox 'hebrew'
>i tried to do it as with the tssision but after i tried to run any app
>that access the bde i get : invalid token ...
>trhe problem will bw fixed if a chacge the langdriver maually in the
>control panel  in the bde adminstrator

>Thanks
>Tal



Wed, 18 Jun 1902 08:00:00 GMT
 Changing Paradox LangDriver in Code
Bug corrections :)

-----------------------------

uses
    SysUtils, Registry;

procedure SetLangDriver(s:string);
var
    Reg:TRegistry;
begin
Reg:=TRegistry.Create;
Reg.RootKey:=HKEY_LOCAL_MACHINE;
Reg.OpenKey('Software\Borland\'+
    'DatabaseEngine\Settings\Drivers\'+
    'Paradox\Init',True);
if UpperCase(Reg.ReadString('LANGDRIVER'))<>UpperCase(s) then
    Reg.WriteString('LANGDRIVER',s);
Reg.CloseKey;
Reg.Destroy;
end;

------------------------------

Danijel Tkalcec,
DeltaSoft.



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

 Relevant Pages 

1. Changing LANGDRIVER at runtime

2. Delphi 1: Change langdriver at runtime

3. How can I change LANGDRIVER of table programatically?

4. changing LANGDRIVER at runtime

5. LangDriver Paradox

6. Tool to change one paradox teble code page

7. Changing the password on Paradox tables with code?

8. change cursor code to set based code

9. How much code change when changing DB types?

10. Changing Code pages and Sort Order / Restoring of table data to change Database

11. Unexpected Condition - File Open (I104) c:PARADOX.CFG (Code 2) -- Leaving Paradox

12. BDE LANGDRIVERS


 
Powered by phpBB® Forum Software