Page 1 of 1

varchar to nvarchar: TStringField to TWideStringField? How?

Posted: Tue 14 Jul 2009 13:55
by brace
Hello
I am using Delphi 2009 and Latest SDAC(470).

I changed all my DB varchar(n) fields to nvarchar(n) to support unicode.
These fields which were earlier generated as TStringField (using Fields Editor of TMSQuery Component)
now i need to change them TWideStringField while i expected them to be either changed automatically or automatically taken care without any change.
Can u please suggest the way to handle this issue, because changing this in entire program may not be feasible.

Posted: Wed 15 Jul 2009 09:12
by Challenger
We do not provide any automation for this purpose. You can use any tool that has the "replace in files" functionality to change your *.pas and *.dfm files.

Posted: Wed 15 Jul 2009 10:17
by brace
Ok, so I will use the technique (with free tool NotePad++).
I just aked to see if there was a better way.
Thanks.

Replace

Posted: Wed 15 Jul 2009 16:23
by ninken
I belive the GExpert Tools can do that for you.

http://www.gexperts.org/