Problems with String and Widestring

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for InterBase & Firebird in Delphi and C++Builder
Post Reply
Thomas0815
Posts: 4
Joined: Tue 08 Jun 2010 18:58
Location: Germany

Problems with String and Widestring

Post by Thomas0815 » Tue 08 Jun 2010 19:09

Hello,

I am using the DBExpressDriver for Interbase Version 2.50.0.22 and I try to connect to a Firebird Database Version 2.0.5 using Delphi 2010.

In the development mode the connection works and the Database fields are created in Delphi. After running the application I get a Error message saying:

Different Typ of field: String expected, Widestring found
(original message in English might be different / translation from German).

The field I try to read is a VARCHAR field.

Does anybody have a solution for this probelm, Thanks

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 09 Jun 2010 08:22

Please check that you don't change the UseUnicode connection parameter in runtime. It seems that you set UseUnicode to False in designtime and to True in runtime.

Thomas0815
Posts: 4
Joined: Tue 08 Jun 2010 18:58
Location: Germany

Post by Thomas0815 » Wed 09 Jun 2010 08:42

Thanks,

UseUniCode=False

worked.

Post Reply