My Delphi is unicode - XE.
I have a code:
Code: Select all
Query.SQL.Text := 'SELECT Tekst FROM table';
with TStringField.Create(Query) do
FieldName := 'Tekst';
Name := 'tableTekst';
Index := 0;
DataSet := Query;
I get the EDatabaseError: 'Type mismatch for field 'Tekst', expecting: String actual: WideString'.
I need to set ControlsCodePage to cGET_ACP to let it work as needed. But as said before in 7.0 Beta thread, for unicode Delphi this should be set to cCP_UTF16. I'm confused here.