Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 15832, ADO 2.6 errormessages

by Henrik Pedersen Email: Anonymous


ADO 2.6 does not display the errormessages when using a different than US locale setting.
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 5.0 24 downloads
Copyright: Open Source or other


Size: 0 bytes
Updated on Wed, 11 Apr 2001 03:35:19 GMT
Originally uploaded on Wed, 11 Apr 2001 03:35:19 GMT
Description
ADO 2.6 does not display the errormessages when using a different than US locale setting.
The source toggles the setting in the registry so you recieve the messages in your Try - Except.

Remember to toggle it back before continuing !

Enjoy developing ? Use Delphi !

Procedure HPToggleLocaleSetting(NewValue : String; SetDefaultValue: Boolean);
var
Reg : TRegistry;
begin
Reg := TRegistry.Create;
Reg.RootKey := HKEY_CURRENT_USER;
Reg.OpenKey('Control Panel\International', False);
If (NewValue <> '') and (not SetDefaultValue) then
begin
LocaleSetting := Reg.ReadString('Locale');
Reg.WriteString('Locale', NewValue);
end
else If SetDefaultValue then
Reg.WriteString('Locale', LocaleSetting);
Reg.Free;
end;

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04