Page 1 of 1

Problems with String and Widestring

Posted: Tue 08 Jun 2010 19:09
by Thomas0815
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

Posted: Wed 09 Jun 2010 08:22
by Dimon
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.

Posted: Wed 09 Jun 2010 08:42
by Thomas0815
Thanks,

UseUniCode=False

worked.