Print Thread
4.1.1 new behaviour
#33380 02/17/09 01:46 PM
Joined: Feb 2009
Posts: 19
P
Member
OP Offline
Member
P
Joined: Feb 2009
Posts: 19
in v 4.0.7 i have ability create TStringField in designer and connct to both unicode database and 1 byte character database.
in 4.1.1 if i have created TstringField - i can connect only to 1 byte character database
if i have created TWideStringField - i can connect only to unicode database. Is it posible to allow make behaviour like in v 4.0.7?

Last edited by PascalVB; 02/17/09 01:58 PM.
Re: 4.1.1 new behaviour
PascalVB #33392 02/18/09 12:46 PM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
What exactly do you mean by "i can connect only to 1 byte character database"? What exactly goes wrong?


Marco Kalter
Allround Automations
Re: 4.1.1 new behaviour
Marco Kalter #33399 02/18/09 01:20 PM
Joined: Feb 2009
Posts: 19
P
Member
OP Offline
Member
P
Joined: Feb 2009
Posts: 19
if i have TStringField on form, then when i connect to unicode database
(AL32UTF8 - 4 byte char size) and open this form - i receive EDatabaseError with message "myDataSet: Type mistmach for field 'MyField', expected: String actual WideString"

Re: 4.1.1 new behaviour
PascalVB #33402 02/19/09 10:55 AM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
If you do not want to make use of Unicode data, you can set Oracle.NoUnicodeSupport to True at run-time. At design-time you will still need to connect to a non-Unicode database though.


Marco Kalter
Allround Automations
Re: 4.1.1 new behaviour
Marco Kalter #38843 10/06/10 08:54 PM
Joined: Feb 2003
Posts: 4
Auckland, New Zealand
J
Member
Offline
Member
J
Joined: Feb 2003
Posts: 4
Auckland, New Zealand
I have the same problem converting an old app. to Delphi 2010, but in my case I want the new version to be unicode compatible. What's the best way to proceed?

Re: 4.1.1 new behaviour
jelder #38845 10/07/10 07:36 AM
Joined: Oct 2005
Posts: 587
Belgium
Member
Offline
Member
Joined: Oct 2005
Posts: 587
Belgium
If my memory is correct, I searched all the units (*.pas and *.dfm) of my projects and replaced TStringField with TWideStringField, and ftString with ftWideString.

Hope this helps.

Roeland


Roeland

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.088s Queries: 15 (0.059s) Memory: 2.5153 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-04-20 08:56:19 UTC
Valid HTML 5 and Valid CSS