String x Widestrings fields..

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 03.09.2009, 11:35
Location: Jundiaí

String x Widestrings fields..

Postby raosistemas » 21.03.2016, 19:40

I'm converting my delphi 5 systems to delphi xe7...

when i open my projects in xe7... i have to delete all my string fields of my tzqueries and tztables fields editor... and insert again...

when i try to open, all my string fields appears:

Field descrição, expecting string, actual widestring...
There is a way to fix it?

Gold Boarder
Gold Boarder
Posts: 671
Joined: 17.01.2011, 14:17

Re: String x Widestrings fields..

Postby marsupilami » 23.03.2016, 18:28

Hello raosistemas,

this is a necessity of converting to Delphi XE7. Zeos makes use of the new possibilities and so uses TWideStingFiled instead of TStringField. This allows for the use of Unicode in your applications because as far as I understand it, TStringField still encapsulates the old AnsiString.

So - honestly there probably is no easy fix for you. Maybe you want to check if it works to just replace all TStringField declarations with TWideStringField. In that case you probably need to replace that in your dfm files too. Notpad++ or a similar editor can help with this. For using Notepad++ you need to convert your dfm files to text.

With best regards,


User avatar
Zeos Dev Team
Zeos Dev Team
Posts: 1739
Joined: 31.03.2011, 22:38

Re: String x Widestrings fields..

Postby EgonHugeist » 30.03.2016, 03:57

As Jan suggested:

Best practice for the Unicode IDE's is to switch to TWideStringFields. You can continue using the TStringFields by setting the ControlsCodePage (TZDataSet's) to cCP_ACP. but i wouldn't do that. Delphi cast all conversioned type i.e String2Integer to a UnicodeString and does the conversion afterwards..
King regards, Michael

You want to help? viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude!


Return to “ZeosLib 7.1 stable Forum”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest