Problems with String and Widestring

Problems with String and Widestring

Postby 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
Thomas0815
 
Posts: 4
Joined: Tue 08 Jun 2010 18:58
Location: Germany

Postby 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.
Dimon
Devart Team
 
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Postby Thomas0815 » Wed 09 Jun 2010 08:42

Thanks,

UseUniCode=False

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


Return to dbExpress driver for InterBase & Firebird