[DUG] D2007-D2010 upgrade issue

Willie Juson willie.juson at satara.co.nz
Tue Feb 16 11:50:20 NZDT 2010


Hi,

 

I’ve been trolling the net trying to find info about this and I’m struggling to find anything useful....  We have a D2007 app that we are porting to 2010. After some initial issues (mostly project paths and component set compatibility stuff) we get everything to compile ok but when we run the app we are getting exceptions  when opening datasets for example ....

 

EDatabase error  myclientdataset: Type Mismatch for field ‘Grower’ expecting string: actual WideString:

 

where “Grower” is a persistent field on the Clientdataset (TStringField) and accompanying TIBQuery(TIBStringField)

 

It seems you fix this by changing the ClientDataset “Grower” Field type to be a TWideStringField. 

 

Is this the only way to fix this – change all declarations of TStringField to TWideStringField in persistent TClientDataset fields? I was hoping there might be some other way, like a compiler directive or a setting for the IBDatabase component that we use for the DB connection....

 

Any ideas would be appreciated

 

Thanks

 

Willie 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100216/44bcd3f1/attachment-0001.html 


More information about the Delphi mailing list