existing project and unicode
existing project and unicode
Hello,
I have a delphi 2k5 project with ODAC 5.8xx . I switch to the new delphi 2010 with ODAC componant 6.90.0.51. No problem.
My customer wants to use those caractere: ĀāĒēĪīŌōŪū. So I want to use unicode, I change the UseUnicode property to "True". The problem was, in execution, I have an error "EdatabaseError: Wrong type for field 'xxx' wait:String Actualy:WideString"
It is possible to make an automatic conversion of all my string fields types in my project?
My apologies for my bad english.
Regards,
Sim
I have a delphi 2k5 project with ODAC 5.8xx . I switch to the new delphi 2010 with ODAC componant 6.90.0.51. No problem.
My customer wants to use those caractere: ĀāĒēĪīŌōŪū. So I want to use unicode, I change the UseUnicode property to "True". The problem was, in execution, I have an error "EdatabaseError: Wrong type for field 'xxx' wait:String Actualy:WideString"
It is possible to make an automatic conversion of all my string fields types in my project?
My apologies for my bad english.
Regards,
Sim
Hello
I try to replace all TStringField in TWideStringField with notepad++
when I execute the project, I have an exception "EClassNotFound with message TWideStringF not found"
I search in my *.pas and *.dfm file about "TWideStringF" and I find nothing. The search and replace is ok in all my files.
thank for your help
I try to replace all TStringField in TWideStringField with notepad++
when I execute the project, I have an exception "EClassNotFound with message TWideStringF not found"
I search in my *.pas and *.dfm file about "TWideStringF" and I find nothing. The search and replace is ok in all my files.
thank for your help
My mistake, you can forget my previous post.
Now i have an EDatabaseError when I open query:
"Wait: WideStrind, actual: String". I check all fields declaration in .pas and .dfm, it's TWideStringField
And if I change UseUnicode propertie to False, I have this: "Wait: String, actual: WideString".
Regards,
Now i have an EDatabaseError when I open query:
"Wait: WideStrind, actual: String". I check all fields declaration in .pas and .dfm, it's TWideStringField
And if I change UseUnicode propertie to False, I have this: "Wait: String, actual: WideString".
Regards,
ok, I try your suggestion:
In the main form, I have 3 query. Two of them don't have problem. The fields are TWideStringFiled, and I can open them.
The third, I recreate the String field. The the new is TstringField but when I open it, I have an exception: Wait:WideString: Actual:String.
I don't understand!
Thank you for your help
Regards,
In the main form, I have 3 query. Two of them don't have problem. The fields are TWideStringFiled, and I can open them.
The third, I recreate the String field. The the new is TstringField but when I open it, I have an exception: Wait:WideString: Actual:String.
I don't understand!
Thank you for your help
Regards,